Re: An old C function problem revisited

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

Jason Gade wrote:
> 
> To use cdecl, make your define_c_func like this:
> }}}
<eucode>xcwbUN_DisplayCommandPrompter = define_c_func(cwbunapi,
> "+_cwbUN_DisplayCommandPrompter@20",
> {C_UINT, C_UINT, C_POINTER, C_POINTER, C_POINTER},C_UINT)</eucode>
{{{

> 
> Note the "+" leading on the function name. But I still think you shouldn't
> need
> it.

There's no function that starts with a "+" exported from the dll.

> 
> Look for the #define CWBAPI and find out what that means.
> 

 From looking through the C include files I believe it's defined as:

__declspec( dllimport ) 
or
__declspec( dllexport )

Jonas Temple
http://www.yhti.net/~jktemple

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

Search



Quick Links

User menu

Not signed in.

Misc Menu