dlllib.cpp
来自「这是整套横扫千军3D版游戏的源码」· C++ 代码 · 共 36 行
CPP
36 行
/**
* @file DllLib.cpp
* @brief Windows shared library loader implementation
* @author Christopher Han <xiphux@gmail.com>
*
* Windows Shared Object loader class implementation
* Copyright (C) 2005. Licensed under the terms of the
* GNU GPL, v2 or later.
*/
#include "StdAfx.h"
#include "DllLib.h"
/**
* Attempts to LoadLibrary on the given DLL
*/
DllLib::DllLib(const char *filename)
{
dll = LoadLibrary(filename);
}
/**
* Does a FreeLibrary on the given DLL
*/
DllLib::~DllLib()
{
FreeLibrary(dll);
}
/**
* Attempts to locate the given symbol with GetProcAddress
*/
void *DllLib::FindAddress(const char *symbol)
{
return (void*) GetProcAddress(dll,symbol);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?