DLL trouble

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

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!

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

Search



Quick Links

User menu

Not signed in.

Misc Menu