Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

iopcDllExternal.h File Reference

Definition of macro DLL_EXTERNAL. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph



Detailed Description

Definition of macro DLL_EXTERNAL.

Josef Troch (

Define Documentation


In MSVC symbols declared in library must be specified as __declspec(dllexport) when building the library. Global variables imported from library must be in client application specified as __declspec(dllimport).

So definition of all classes and global variables uses this macro. The macro is on MSVC platform expanded to __declspec(dllexport) if macro BUILDING_IOPC_LIB is defined and to __declspec(dllimport) if not. On other platforms macro is expanded to empty string.

Of course, if you are building IOPC LIB, it's necessary to define the BUILDING_IOPC_LIB macro.

Generated on Wed Aug 11 22:34:02 2004 for IOPC by Doxygen 1.3.6