Re: Problem calling my C DLL from a IDE created source

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

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?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu