#ifndef NATIVEDLL_H #define NATIVEDLL_H ///////////////////////////////////////////////////////////////////////// // NativeDLL.h - demonstrate basic C++ dynamic link library // // // // Jim Fawcett, CSE775 - Distributed Objects, Summer 2010 // ///////////////////////////////////////////////////////////////////////// // The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the NATIVEDLL_EXPORTS // symbol defined on the command line. This symbol should not be defined on any project // that uses this DLL. This way any other project whose source files include this file see // NATIVEDLL_API functions as being imported from a DLL, whereas this DLL sees symbols // defined with this macro as being exported. #ifdef NATIVEDLL_EXPORTS #define NATIVEDLL_API __declspec(dllexport) #else #define NATIVEDLL_API __declspec(dllimport) #endif // This class is exported from the NativeDLL.dll class NATIVEDLL_API CNativeDLL { public: CNativeDLL(void); void say(); }; #endif