⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stklib.cpp.svn-base

📁 股票软件源码
💻 SVN-BASE
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -