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

📄 dllload.h

📁 DynamicD
💻 H
字号:
/*#############################################################################
# DLLLOAD.H
#
# SCA Software International S.A.
# http://www.scasoftware.com
# scaadmin@scasoftware.com
#
# Copyright (c) 1999 SCA Software International S.A.
#
# Date: 21.12.1999.
# Author: Zoran M.Todorovic
#
# This software is provided "AS IS", without a warranty of any kind.
# You are free to use/modify this code but leave this header intact.
#
#############################################################################*/

#ifndef __DLL_LOAD_H__
#define __DLL_LOAD_H__

//=============================================================================
// class TDllModule
// Base class for dynamically loaded DLL's
//=============================================================================

class TDllModule {
  public:
    enum TErrorCode {
      ERROR_OK = 0,
      ERROR_DLLNOTFOUND,
      ERROR_INVALIDEXPORT,
      ERROR_NOTCREATED
    };
  
  protected:
    int m_nErrorCode;
    CString m_strName;
    HINSTANCE m_hHandle;

  public:
    TDllModule(LPCTSTR szName);
    virtual ~TDllModule();
    
    virtual BOOL Create(void);
    virtual void Destroy(void);
    
    int GetErrorCode(void)      { return m_nErrorCode; }
    CString GetDLLName(void)    { return m_strName; }
};

#endif

/*#############################################################################
# End of file DLLLOAD.H
#############################################################################*/

⌨️ 快捷键说明

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