From: Henning, B. <bri...@na...> - 2002-08-16 14:57:02
|
Hello- if i have the following src code with the def file how can i use mingw to compile it into a dll that i can use by other programs. thanks, brian t1.c ==== #include <windows.h> #include <stdio.h> char *myPrint(); BOOL APIENTRY DllMain(HANDLE hModule, DWORD ReasonForCall, LPVOID lpReserved) { switch(ReasonForCall) { case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return TRUE; } char *myPrint() { printf("%d", 12); return "Hello World"; } t1.def ====== NAME t1.dll DESCRIPTION 'does nothing' EXPORTS myPrint |