Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Creating an external function DLL in C

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Creating an external function DLL in C
#13351
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
Message2.
#13353
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.
Message3.
#13354
Posted by: chucksim 2010-08-09 04:46:42
Got it. Thanks Jeff.
Chuck Simmons
Message4.
#13356
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.
Message5.
#13357
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!
#13358
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.
Message7.
#13470
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:
0.0.0.8 of rexx gui ,
5.5.4 of reglite 13 Oct 2008 ,
0.0.1.1 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
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0