Re: Problem calling my C DLL from a IDE created source
- Posted by Robert Craig <rds at RapidEuphoria.com> Mar 07, 2007
- 499 views
Andrew Katz wrote: > > I have spent all day trying to figure out why my Euphoria windows program > cannot access my DLL. I have determined that in fact it does access it, but > that the arguments are passed wrong. You might have to specify the CDECL calling convention. From the documentation for define_c_func(): "On Windows, you can add a '+' character as a prefix to the function name. This indicates to Euphoria that the function uses the cdecl calling convention. By default, Euphoria assumes that C routines accept the stdcall convention." i.e. entry = define_c_func (dll, "+dll_entry_", {C_UINT}, C_UINT) Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com