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

📄 wdlldemo.h

📁 C++编程实践与技巧一书各章节的源码
💻 H
字号:
//wdlldemo.h
//sure it will be included only once
#ifndef _ATM_WDLLDEMO_H_
#define _ATM_WDLLDEMO_H_
#pragma once

//to speedup & reduce size
#define VC_EXTRALEAN

//Header body

//export macros
#define DLL_EXPORT __declspec(dllexport) 
//import macro
#define DLL_IMPORT __declspec(dllimport)

#include <windows.h>

//to export for C++ & C
#ifdef __cplusplus 
 extern "C" 
 {  
#endif
//class export, with all definitions
class DLL_EXPORT CWDllDemo
{
public:
 //blah blah method
 int WDllFunc(void);

 //blah blah variable
 int m_WDllData;

 //con and decon
 CWDllDemo();
 ~CWDllDemo();
};

//exported variable
DLL_EXPORT int m_outclass=9;

//exported function
DLL_EXPORT BOOL OutFunc(BOOL bParam);


#ifdef __cplusplus 
   } 
#endif

//EOF Header body
#endif 

//

⌨️ 快捷键说明

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