【新增】 tcc环境
This commit is contained in:
20
tcc/examples/hello_dll.c
Normal file
20
tcc/examples/hello_dll.c
Normal file
@@ -0,0 +1,20 @@
|
||||
//+---------------------------------------------------------------------------
|
||||
//
|
||||
// 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;
|
||||
}
|
Reference in New Issue
Block a user