mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
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:
parent
d2e89f0c9f
commit
7d4ec8caba
44 changed files with 4659 additions and 5380 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue