1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//+--------------------------------------------------------------------------- // // dll.c - Windows DLL example - dynamically linked part // #include <windows.h> #define DLL_EXPORT __declspec(dllexport) DLL_EXPORT void HelloWorld (void) { MessageBox (0, "Hello World!", "From DLL", MB_ICONINFORMATION); }