You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
805 B
C

1 month ago
//////////////////////////////////////////////////////////////////////////////
/**
* @file LoadLibrary.h
* @brief <EFBFBD><EFBFBD><EFBFBD><EFBFBD>DLL<EFBFBD><EFBFBD>EXEģ<EFBFBD><EFBFBD>Ƕ<EFBFBD>::LoadLibrary<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD>װ
* @author
* @date 2012-4-20
*////////////////////////////////////////////////////////////////////////////
#pragma once
class CLoadLibrary
{
public:
CLoadLibrary(void);
~CLoadLibrary(void);
/** @brief Get a handle to the DLL module. */
BOOL LoadLibrary(LPCTSTR lpFileName);
/** @brief Free the DLL module. */
BOOL FreeLibrary();
BOOL IsLoaded() { return m_hDLL!=NULL ? TRUE:FALSE; }
/** @brief Retrieves the address of an exported function or variable from
the specified dynamic-link library (DLL). */
FARPROC GetProcAddress(LPCSTR lpProcName);
protected:
CString m_strFileName; //<2F>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>*.dll<6C><6C>
HINSTANCE m_hDLL;
};