newer version of tcc almost working
This commit is contained in:
parent
c42c5d94b8
commit
826d1afd58
442 changed files with 90400 additions and 24506 deletions
20
05/tcc-0.9.27/win32/examples/hello_dll.c
Normal file
20
05/tcc-0.9.27/win32/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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue