DLL trouble
- Posted by K. Einfeldt <keinfeldt at ?yrealbox.co?> Dec 02, 2007
- 529 views
I'm accessing DLL's with the open_dll function, e.g.}}} <eucode> include dll.e constant kernel32 = open_dll("kernel32.dll"), cSetEndOfFile = define_c_func(kernel32, "SetEndOfFile", {C_UINT}, C_UINT) </eucode> {{{ but what do I do if I need to use a function that takes parameters other than the ones built-in, namely: }}} <eucode> global constant C_CHAR = #01000001, C_UCHAR = #02000001, C_SHORT = #01000002, C_USHORT = #02000002, C_INT = #01000004, C_UINT = #02000004, C_LONG = C_INT, C_ULONG = C_UINT, C_POINTER = C_ULONG, C_FLOAT = #03000004, C_DOUBLE = #03000008 </eucode> {{{ Many functions take more advanced "struct" arguments. What do I use in that case? If there's no way around this limitation, does anyone know a better way "into" DLL's than the open_dll function? I'm also a little frustrated in that I can't access global constants defined in the DLL. Thanks in advance for any help!