Re: Bad Routine Number

new topic     » goto parent     » topic index » view thread      » older message » newer message
Icy_Viking said...

Ok, I figured out it was a 32-bit DLL I'm using, so that is correct. However, not I'm not getting the -1 error anymore. However nothing shows up when the basic program is executed. I ran it from the command line as well and no errors are coming up. Could it be the way windows draws windows/graphics? I'm using Windows 7 64-bit Ultimate.

It looks like the SDL routines are using the CDECL calling convention. Euphoria will use the STDCALL convention by default on Windows. Have you prepended the function names with '+' to force CDECL?

This is only necessary on 32-bit Windows (64-bit uses its own single convention). The '+' will be safely ignored on 64-bit Windows and non-Windows systems.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu