Re: Problem calling my C DLL from a IDE created source
- Posted by Andrew Katz <Akatz712 at gmail.com> Mar 07, 2007
- 501 views
Robert Craig wrote: > > 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 > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> Adding the + had no effect. Should I try to compile the EUPHORIA language myself and try to debug it?