stklib.cpp.svn-base

来自「股票软件源码」· SVN-BASE 代码 · 共 53 行

SVN-BASE
53
字号
// StkLib.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


/*
	purpose:		initialize StData.dll
	return:			whether correct
*/

#ifdef	SP_WINDOWS
#ifdef	SP_WIN32
// the interfaces of dll
HINSTANCE	g_hStkLibInstance;

HINSTANCE AfxGetModuleHandle()
{
	return g_hStkLibInstance;
}

extern "C" BOOL APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	// Remove this if you use lpReserved
	UNREFERENCED_PARAMETER(lpReserved);

	if (dwReason == DLL_PROCESS_ATTACH)
	{
		g_hStkLibInstance	=	hInstance;
	}
	else if (dwReason == DLL_PROCESS_DETACH)
	{
	}
	return 1;   // ok
}

#else
int CALLBACK LibMain(HINSTANCE hinst, WORD wDataSeg, WORD cbHeapSize, LPSTR lpszCmdLine)
{
	return	TRUE;
}
#endif //SP_WIN32
#endif //SP_WINDOWS


⌨️ 快捷键说明

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