tinycc/win32/examples/hello_dll.c

21 lines
440 B
C
Raw Normal View History

2005-04-17 17:10:37 +04:00
//+---------------------------------------------------------------------------
//
// HELLO_DLL.C - Windows DLL example - main application part
//
#include <windows.h>
void hello_func (void);
__declspec(dllimport) extern const char *hello_data;
2005-04-17 17:10:37 +04:00
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
2005-04-17 17:10:37 +04:00
{
hello_data = "Hello World!";
hello_func();
return 0;
2005-04-17 17:10:37 +04:00
}