/******************** testdll.cpp file************************/ #include "stdafx.h" #include "testdll.h" #include <stdio.h> #include <stdlib.h> #include <WinSock.h> #include <iostream> #include <c:/mysql/include/mysql.h> using namespace std; MYSQL *connection, mysql; TESTDLL_API int fntestdll(void) { mysql_init(&mysql); return 0; }
/************************** Testdll.h file*****************************/ #define TESTDLL_API __declspec(dllexport) TESTDLL_API int fntestdll(void);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)