Answer the question
In order to leave comments, you need to log in
How to dynamically link a dll?
I want to work with Sqlite under WinCE.
I downloaded the archive , then according to the documentation I made a dll with either. Created MFC Smart Device project, in it
#pragma comment(lib,"sqlDll.lib")
#include "sqlite3.h"
sqlite3_open("test.db", &db);
Answer the question
In order to leave comments, you need to log in
In the linker, you need to register the lib file. In this case, the sqlite.c file does not need to be added to the project, the sqlite.h file is enough.
If you don't want sqlite to be a standalone dll, then just add the sources (.c and .h) sqlite to the project and you don't need to configure anything else.
I did not understand about "In the linker you need to register a lib file" - is it when creating a dll (then what lib file)? Or already when it is connected (then why, if I connect via pragma)?
#pragma comment(lib,"sqlDll.lib")
extern "C" {
#include "sqlite3.h"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question