RE: dll headache

new topic     » topic index » view thread      » older message » newer message

void wrote:
> I'm trying to create a dll to access C functions in an external program. 
> 
> The C program comes with an API, and includes source code, header files, 
> 
> lib file, makefile (from with I created obj files). 
> I'm a beginner so I've read many messages in this forum about dll's and 
> tried things like bcc32 -tWD ... and tried swig-eu, but I failed to 
> build a working dll (no Export functions show up with quick view).
> The Euphoria part on how to read from a dll is clear, but building a dll 
> 
> from C source gives me headaches, I have tried things with Borland C++ 
> 5.02 and Visual C++ 6.00, I also have Watcom.
> 
> My questions for now are:
> What files are needed for a dll: *.c, *.h, *.obj *.lib ?
> Then how do build the dll from these files?
> Do I need to add C source code?
> 
> 
> (I'm trying to access the C functions of the Wordnet API
> http://www.cogsci.princeton.edu/~wn (open source))

If you go here and download the file mydll.zip:

http://www.sourcecode.nu/zone15/cat161/

or the file CDLL.ZIP: 
( This is a long url be sure to use it all because euform wraps it ) 
http://www.sourcecode.nu/search/advsearch.asp?ZoneID=-1&caller_page=&page=3&SearchMode=1&SearchTxt1=dll



You will find the files you need to build a DLL in "C".
MYDLL.ZIP shows the minimum needed to build a DLL.

CDLL.ZIP shows how to build a DLL and has a test program
showing how to call it.

Also if you do a search at this site on DLL you will find
lots of examples of call dll from other langaguges.

Bernie

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu