#ifndef _DLL_TUTORIAL_H_
#define _DLL_TUTORIAL_H_
#include <iostream>
#if defined DLL_EXPORT
#define DECLDIR __declspec(dllexport)
#else
#define DECLDIR __declspec(dllimport)
#endif
extern "C"
{
DECLDIR int Add( int a, int b );
DECLDIR void Function( void );
}
#endif
Run Code Online (Sandbox Code Playgroud)
代码到底是DECLDIR __declspec(dllexport)做什么的?
可能重复:
如何在DTD和XSD之间进行选择
我在设计时是否要使用DTD或XSD有点困惑.有人可以帮忙吗?