dll.c

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 34 行

C
34
字号
int main(int reason)
{
int result;

	if (!reason) {

		/*
		** DLL initialisation.
		*/
		printf("DLL startup...\n");

		/* return zero to let the load continue */
		result=0;

	} else {

		/*
		** DLL clean up.
		*/
		printf("DLL shutdown...\n");

	}

return(result);
}


void __export _cdecl SayHello( char * message)
{
	printf("Recieved DLL Message: ");
	printf(message);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?