Dacons LLP Mailit for C/C++ | Version 1.0 |
Strings.hppGo to the documentation of this file.00001 00014 #ifndef __STRINGS_HPP__ 00015 #define __STRINGS_HPP__ 00016 00017 #include <EmaiMessagePartEnumerator.hpp> 00018 00019 /*#ifdef WIN32 00020 00021 #define U(str) L ## str 00022 00023 #define FORMATMSGSQC _snwprintf 00024 #else 00025 00026 #define U(str) CFSTR(str) 00027 00028 #define FORMATMSGSQC(str, size, format, ...)\ 00029 {\ 00030 CFStringRef tempStr = ::CFStringCreateWithFormat(kCFAllocatorDefault,\ 00031 NULL, format, __VA_ARGS__);\ 00032 \ 00033 assert(tempStr != NULL);\ 00034 ::CFStringGetCharacters(tempStr, CFRangeMake(0, size), str);\ 00035 ::CFRelease(tempStr);\ 00036 } 00037 #endif 00038 */ 00039 00040 #endif /*__STRINGS_HPP__*/ |