Guidance Forums / Reginald Rexx / Creating an external function DLL in C

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Creating an external function DLL in C
Posted by: chucksim 2010-08-08 11:33:11
I am trying to create an external function in C and creating a DLL. I am following an old procedure I found that references the Reginald developer's Kit. I create a new empty Win32 DLL Project. I add the dll1.c and dll.def files to the project. I add the REXXSAA.h and Reginald.lib, both found on the kit. I compile. No errors. But when I craete my script and load the dll using the LIBRARY directive, I get.

The procedure entry point RexxAllocateMemory  could not be located in the dynamic link library Reginald.dll    

Any ideas?
Chuck Simmons
Posted by: Jeff Glatt 2010-08-09 00:27:59
Reginald uses a new format for add-on DLLs. I thought the latest version of the devkit has the tutorial and examples.
Posted by: chucksim 2010-08-09 04:46:42
Got it. Thanks Jeff.
Chuck Simmons
Posted by: PeterJ 2010-08-09 20:24:58
Chuck, were you able to open (import) one of the projects (xxxx.MDP) of DEVKIT?
I tried it with Visual C++ 2010 Express and get conversion errors:
e.g. "The following erro occurred during XML parsing: File xxxxx, Line 1 Column 1 Error Message: Incorrect document syntax, xxxx has failed to load.
Posted by: chucksim 2010-08-09 21:33:42
I used VS 2008 and it converted and compiled perfectly.
Chuck Simmons
Message6. Got it running with Visual Express!
Posted by: PeterJ 2010-08-12 15:21:13
After a painful exercise I got the samples running with Visual C++ Express 2010, which is a limited but free version of Visual Studio.  I may create a brief description if someone is interested. In fact it's a variation of Jeff's DLL walkthrough.
Posted by: rxguy 2011-04-12 04:50:11
I am trying to make dll as well using Visual Studio (VS) C++ 2008. 

I've got version: of rexx gui ,
5.5.4 of reglite 13 Oct 2008 , of Programmer Center

Did compile dll1 from devkit. VS 2008 made an upgrade report which looks like it needed to update fonts and colors.

Having trouble but maybe I don't have latest version of devkit. Where is that latest version?  Can't find it on  website.

I notice that RPC crashes (when it needs to save changes) quite a lot on Win 7.

And yes Peter I would be interested in your walkthrough.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Sat 2018-5-26  Guidance Laboratory Inc. Hits:0