MapiEx: Improved compatibility with MinGW (now it compiles)

git-svn-id: svn://ultimatepp.org/upp/trunk@6445 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2013-10-18 15:29:11 +00:00
parent d2e89f0c9f
commit 7d4ec8caba
44 changed files with 4659 additions and 5380 deletions

View file

@ -17,7 +17,7 @@
// Ported to U++ Framework by Koldo. See License.txt file
#include "MAPIEx.h"
#include "MapiUtil.h"
//#include "MapiUtil.h"
#include <winnls.h>
/////////////////////////////////////////////////////////////
@ -630,7 +630,7 @@ bool MAPIObject::SetHTML(const String &strHTML) {
} else {
// otherwise lets encode it into RTF
const char *szCodePage = "1252"; // default codepage is ANSI - Latin I
GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE, (CHAR*)szCodePage, strlen(szCodePage));
GetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_IDEFAULTANSICODEPAGE, (CHAR*)szCodePage, (int)strlen(szCodePage));
String strRTF;
strRTF = Format("{\\rtf1\\ansi\\ansicpg%s\\fromhtml1 {\\*\\htmltag1 ", szCodePage);