wdlldemo.h

来自「C++编程实践与技巧一书各章节的源码」· C头文件 代码 · 共 54 行

H
54
字号
//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 + =
减小字号Ctrl + -
显示快捷键?