Hi guys! tongue
Quote:

There is. You can use the MySQL dll directly (be sure to know about the licensing issues) and use the LoadLibrary() and GetProcAddress() WinAPI functions for dynamically loading the library and the exported functions.
Or you use HTTPS(!) and connect to your webservice which then does the needed transactions (which is preferred for the already a hundred times mentioned security issues)


I decided to use directly the dll of the mysql library such as "JustSid" said!
But now I am experiencing great difficulty with the enguine.
Because I can not resolve an error: "Script Crash in Main"

The Code works with sucess!
The DLL is loaded successfully, but I tried in every way I know and I can not make it load the DLL without generating this error!

According to my script attached, the error message occurs when I run the "mysql_init ();". because if I erase this line of code, it runs normally without the error message.

This script is one of the minimized version, but as I said earlier is working, and run the DLL with sucess. But not I make it work without the error message.

Somebody can help me?

Code:
#include <acknex.h>
#include <default.c>
#include <windows.h>

long WINAPI mysql_init();

function main()
{
	
HINSTANCE h = LoadLibrary("libmysql.dll");
mysql_init = GetProcAddress(h,"mysql_init");
if (h != NULL) {
	//Running
	mysql_init();
	
}
}






Last edited by NeoNeper; 05/26/12 16:28.

Please! Use easy words to be translated. because my English is not very good! Grateful.
_______________________________________________________