Essien Essien <[EMAIL PROTECTED]> wrote:
    _sqlite3_open = (SQLITE3_OPEN)GetProcAddress(sqlite3_dll,
"sqlite3_open");
    if (_sqlite3_open == NULL) {
        printf("Cannot load function sqlite3_open");
        return 0;
    }
}

I'm using Turbo C++ 4.5 IDE and related tools. (yeah... i know turbo
C++ 4.5is realy aged, but could this be the problem?)

I believe Turbo C++ can only produce Win16 executables. A Win16 executable can load a Win32 DLL but cannot call functions in it without jumping through extremely complicated hoops:

http://msdn.microsoft.com/library/en-us/winprog/winprog/generic_thunks.asp
http://msdn.microsoft.com/archive/en-us/win9x/tc_0cz6.asp

I would not recommend this route except when somebody is holding a gun to your head. You'll make your life a lot easier by using a modern compiler capable of producing Win32 executables. Visual C++ Express Edition is one such compiler, available from your friendly operating system vendor at no charge:

http://msdn.microsoft.com/vstudio/express/visualc/

Igor Tandetnik

Reply via email to