cspublic.cpp

来自「支持Windows 3.x、Windows 9x平台上的中文(GB、Big5)、」· C++ 代码 · 共 58 行

CPP
58
字号
//公共状态变量与公共工具函数

#include "stdafx.h"

HINSTANCE	hCsPublic ;		//标识该DLL

#ifdef __cplusplus
extern "C" {
#endif

int	FAR	PASCAL	LibMain( HINSTANCE hInst , WORD wDataSeg ,
						 WORD wHeapSize , LPSTR lpszCmdLine ) ;
//int FAR PASCAL WEP(int) ;

int	FAR	PASCAL	LibMain( HINSTANCE hInst , WORD wDataSeg ,
						 WORD wHeapSize , LPSTR lpszCmdLine )
{
	hCsPublic	=hInst ;

	return 1 ;
}
/*
int FAR PASCAL WEP(int)
{  
	return 1;
}
*/
#ifdef __cplusplus
}
#endif

/*
class CPublic: public CWinApp
{
public:
	virtual BOOL InitInstance(); // Initialization
	virtual int ExitInstance();  // Termination (WEP-like code)

	// nothing special for the constructor
	CPublic(const char* pszAppName)
		: CWinApp(pszAppName)
		{ }
};

BOOL CPublic::InitInstance()
{
	return TRUE;
}

int CPublic::ExitInstance()
{
	// any DLL termination goes here (WEP-like code)
	return CWinApp::ExitInstance();
}


CPublic  NEAR OPublic("public.dll");
*/

⌨️ 快捷键说明

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