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 <stdio.h>
#include <stdarg.h>    

#define _SQLITE3_H_  extern "C" __declspec(dllexport)

#define PLUGINAPI2 extern "C" __declspec(dllexport)

PLUGINAPI2 typedef struct sqlite3 sqlite3;

PLUGINAPI2 int sqlite3_open(
  const char *filename,
  sqlite3 **ppDb         
);

PLUGINAPI2 int main (){
  sqlite3 *db;
  int rc;
  //WHEN THIS LINE IS UNCOMMENTED THE HOST DOES NOT READ THE PLUGIN
  //rc = sqlite3_open("C:\\test2.db", &db); 
}

Reply via email to