Re: [sqlite] Plugin help requested
I've read that message and spent a lot of time trying to figure out why my code was broken, only to find out it wasn't my code. It was annoying enough I remembered it ;) Good luck On 3/6/06, cstrader <[EMAIL PROTECTED]> wrote: > Yes, was that ever obvious. My dependency checker just didn't pick it up. > Thanks, Jay!! >
Re: [sqlite] Plugin help requested
Yes, was that ever obvious. My dependency checker just didn't pick it up. Thanks, Jay!!
Re: [sqlite] Plugin help requested
Do you get the message 'the dll or one of it's component's can't be found'? If so, check that all the required pieces (the sqlite dll), are either in the current app run directory, or the windows directory
Re: [sqlite] Plugin help requested
that doesn't seem to be it - I have the same problem with this code. #include #include #define _SQLITE3_H_ extern "C" #define PLUGINAPI2 extern "C" PLUGINAPI2 typedef struct sqlite3 sqlite3; PLUGINAPI2 int sqlite3_open( const char *filename, sqlite3 **ppDb ); PLUGINAPI2 int main (){ sqlite3 *db; int rc; //**THIS LINE RUNS FINE IN CONSOLE MODE BUT //WHEN IT IS UNCOMMENTED AB NO LONGER FINDS THE .DLL rc = sqlite3_open("C:\\test2.db", &db); }
Re: [sqlite] Plugin help requested
cstrader wrote: > I'm trying create a .dll. The .dll compiles and looks fine and the code runs > fine in console mode, but the host cannot read the .dll when the sqlite3_open > line below is uncommented. Any ideas why would be appreciated. thanks! > > #include > #include > > #define _SQLITE3_H_ extern "C" __declspec(dllexport) > > #define PLUGINAPI2 extern "C" __declspec(dllexport) The problem is that you've declared the symbol for export. Just remove the __declspec part and it should work.