📄 wdlldemo.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 + -