#include "stdafx.h" #include "testlib.c" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { LoadTestLibrary(); // etc.... }
HINSTANCE TESTLIB=NULL; long LoadTestLibrary() { TESTLIB=LoadLibrary("TESTLIB.DLL"); if(TESTLIB == NULL) { MessageBox(NULL, "Unable to load TESTLIB.DLL", "ERROR", MB_OK); return(-1); } else { // process the data and echo the result }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)