The statement 'sys "LoadLibrary", "ODBC32.DLL" ¸to odbc%' works with BB4W but with BBCSDL2.0 gives me a ' No such system call' error.
Can anyone suggest a reason?
ODBC call failure in SDL
Re: ODBC call failure in SDL
I do not recommend trying to call Windows API functions from BBCSDL (remember that SDL2 is acting as an 'OS abstraction layer' and is partially isolating your program from Windows). However you may find it works by using LoadLibraryA:
Code: Select all
SYS "LoadLibraryA", "ODBC32.DLL" TO odbc%
Code: Select all
SYS "SDL_LoadObject", "C:\Windows\SysWOW64\odbc32.dll" TO odbc%