Advertisement
Guest User

Untitled

a guest
Jul 9th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. //+---------------------------------------------------------------------------
  2. //
  3. //  HELLO_DLL.C - Windows DLL example - main application part
  4. //
  5. //+---------------------------------------------------------------------------
  6.  
  7. #include <windows.h>
  8.  
  9. void hello_func (void);
  10. __declspec(dllimport) extern const char *hello_data;
  11.  
  12. int WINAPI WinMain(
  13.     HINSTANCE hInstance,
  14.     HINSTANCE hPrevInstance,
  15.     LPSTR     lpCmdLine,
  16.     int       nCmdShow)
  17. {
  18.     hello_data = "Hello World!";
  19.     hello_func();
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement