I tried to use this but getting errors. Has anyone got this working?
Here is what I tried.
1. I commented out the line <acknex.h>, since I couldn't find it anywhere in litec.
2. When I tried to run it in zorro test mode, I get the below 3 errors.
Error in 'line 15' (please follow the below code for line numbers)
'MZ' undeclared identifier.
<function main()>
Could someone shed some light on this please?
Thank you for your help.
////////////////////////////////////////////////////////////////////////////////////////////
/*Connect to te database*/
////////////////////////////////////////////////////////////////////////////////////////////
//#include <acknex.h>
#include <default.c>
#include <windows.h>
//Include the DLL functions prototype
//#include "lib_sqlitec.h";
#include "C:UsersLenovoZorrosqlite3_pluginlib_sqlitec.h";
#include "C:UsersLenovoZorrosqlite3_pluginsqlite3c.dll";
function main()
{
//Start DLL Functions prototypes
libsqlite_start("C:UsersLenovoZorrosqlite3_pluginsqlite3c.dll");
wait(1);
char* db = "C:UsersLenovoZorrosqlite3_pluginmydata.db";
char errbuff[256];
if(!sql_conect(db,SQLITE_OPEN))
{
printf("successfully connected");
}
else
{
sql_get_error(errbuff);
printf("%s",errbuff);
}
sql_close();
}