PKIFResources.h

Go to the documentation of this file.
00001 
00010 #if !defined(__PKIFRESOURCES_H__)
00011 #define __PKIFRESOURCES_H__
00012 
00013 
00014 #if !defined(WIN32)
00015 // for now, loading resources as a dll is only supported on Windows
00016 #define PKIFRESOURCES_STATIC
00017 #endif
00018 
00019 #if !defined(PKIFRESOURCES_STATIC)
00020 
00021 // The following ifdef block is the standard way of creating macros which make exporting 
00022 // from a DLL simpler. All files within this DLL are compiled with the PKIFRESOURCES_EXPORTS
00023 // symbol defined on the command line. this symbol should not be defined on any project
00024 // that uses this DLL. This way any other project whose source files include this file see 
00025 // PKIFRESOURCES_API functions as being imported from a DLL, whereas this DLL sees symbols
00026 // defined with this macro as being exported.
00027 #if defined(PKIFRESOURCES_EXPORTS)
00028 #define PKIFRESOURCES_API __declspec(dllexport)
00029 #else //defined(PKIFRESOURCES_EXPORTS)
00030 #define PKIFRESOURCES_API __declspec(dllimport)
00031 #endif //defined(PKIFRESOURCES_EXPORTS)
00032 
00033 
00034 #else 
00035 #define PKIFRESOURCES_API
00036 #endif 
00037 
00038 /* auto-link the appropriate lib on MSVC */
00039 #if defined(_MSC_VER) && (!defined(_LIB) && !defined(_USRDLL))
00040 #if defined(PKIFRESOURCES_STATIC)
00041 #if defined(_DEBUG)
00042 #pragma comment(lib,"pkifresources_staticd.lib")
00043 #else
00044 #pragma comment(lib,"pkifresources_static.lib")
00045 #endif //defined(_DEBUG)
00046 #else
00047 #if defined(_DEBUG)
00048 #if defined(USE_VLD)
00049 #pragma comment(lib,"pkifresourcesvld.lib")
00050 #else
00051 #pragma comment(lib,"pkifresourcesd.lib")
00052 #endif
00053 #else
00054 #pragma comment(lib,"pkifresources.lib")
00055 #endif //defined(_DEBUG)
00056 #endif //defined(PKIFRESOURCES_STATIC)
00057 #endif //defined(_MSC_VER) && (!defined(_LIB) && !defined(_USRDLL))
00058 
00059 #endif 

Generated on Mon Nov 15 11:15:55 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6