Visual C++



MyDLL.c #include <windows.h> #include MyDLL.h int WINAPI DllMain(HINSTANCE hInstance, DWORD fdReason, PVOID pvReserved) { return TRUE; } EXPORT int CALLBACK MyFunction(char *str) { MessageBox(NULL,str,Function from DLL,MB_OK); return 1; }