Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //+---------------------------------------------------------------------------
- //
- // HELLO_DLL.C - Windows DLL example - main application part
- //
- //+---------------------------------------------------------------------------
- #include <windows.h>
- void hello_func (void);
- __declspec(dllimport) extern const char *hello_data;
- int WINAPI WinMain(
- HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
- hello_data = "Hello World!";
- hello_func();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement