Re: An old C function problem revisited
- Posted by Jonas Temple <jtemple at yhti.net> Feb 24, 2006
- 506 views
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