--- Gilles Ganault <[EMAIL PROTECTED]> wrote:
> As I'd like to be able to build my own SQLite DLL for use with Visual
> Basic Classic, I followed Todd Tanner's instructions at
> www.tannertech.net/sqlite3vb/ to make the (few) required changes and
> compile with Visual C++ 6.0.
This has come up before on the list. The instructions are wrong:
Comment out the following lines is loadext.c by adding 2 back slashes ("//")
to the start of the
line. This prevents errors due to our changes.
sqlite3_changes,
sqlite3_close,
sqlite3_last_insert_rowid,
sqlite3_libversion,
sqlite3_libversion_number,
sqlite3_open,
sqlite3_open16,
Try to find another compatible sqlite3 driver.
>
> As a test, after just making those changes in the amalgamated files, I get
> an error:
>
> //=============sqlite3.h
> #include <windows.h>
> #include <stdio.h>
> #include <io.h>
> #include <oleauto.h>
> #include <wtypes.h>
>
> //sqlite_int64 sqlite3_last_insert_rowid(sqlite3*);
> sqlite_int64 __stdcall sqlite3_last_insert_rowid(sqlite3 *);
>
> //=============sqlite3.c
> //sqlite_int64 sqlite3_last_insert_rowid(sqlite3*);
> sqlite_int64 __stdcall sqlite3_last_insert_rowid(sqlite3*);
>
> //=============Compiling
> => sqlite3_last_insert_rowid,
> error C2152: 'initializing' : pointers to functions with different attributes
>
> Is it a configuration issue? Actually, I didn't find where in VC++ 6.0 to
> put the reference to the .DEF file (nothing that looks like Module
> Definiont File under Linker.)
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------