www.pudn.com > 智能内码识别,支持屏幕取词翻译的程序.zip > CSPUBLIC.CPP


//公共状态变量与公共工具函数 
 
#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"); 
*/