mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-25 06:00:11 +08:00
16 lines
328 B
C
16 lines
328 B
C
|
//+---------------------------------------------------------------------------
|
||
|
//
|
||
|
// 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);
|
||
|
}
|
||
|
|