help! (DLLs)
- Posted by sephiroth _ <euman2376 at yahoo.com> May 10, 2001
- 521 views
hey, i'm trying to make a DLL in LCC-Win32. it works when i write little C programs to link to it, but i can't use GetProcAddress(Win32 API) or define_c_proc(euphoria, of course ;) to get the address for my lone function test.c: #include <stdio.h> void sayit () { puts("Hello World!"); } test.def: EXPORTS sayit test.exw: include dll.e atom lib,func lib=open_dll("test.dll") func=define_c_proc(lib,"sayit",{}) -- func will now be -1 for some odd reason c_proc(func,{}) -- error and i compile my DLL like this: lc test.c -s -dll test.def any ideas what's going on here?