Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: MFC Programming PinmemberJoe Woodbury4-Mar-13 11:39 
GeneralRe: MFC Programming PinmemberStephen Hewitt16-Mar-13 13:48 
Questionhow to increase the width and height of a bitmap in mfc.? Pinmembermbatra3128-Feb-13 19:53 
AnswerRe: how to increase the width and height of a bitmap in mfc.? PinmemberFlaviu228-Feb-13 21:00 
GeneralRe: how to increase the width and height of a bitmap in mfc.? Pinmembermbatra311-Mar-13 1:13 
AnswerRe: how to increase the width and height of a bitmap in mfc.? PinmemberJochen Arndt28-Feb-13 21:20 
QuestionHELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 Pinmemberandwan028-Feb-13 4:00 
AnswerRe: HELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 PinmemberJochen Arndt28-Feb-13 4:52 
A quote from the MySpell link of the SpellEdit article:
Quote:
MySpell has been replaced with hunspell starting with OpenOffice.org 2.0.2. Hunspell builds on MySpell but supports Unicode and adds several other useful features.
So you can't use MySpell with Unicode builds because it supports only ANSI character sets.
 
Hunspell has Unicode support but uses UTF-8 strings while Windows uses UTF-16. So Windows strings must be converted to UTF-8 before passing them to the spell checker.
 
With UTF-8, strings are still passed as char* because a single character is encoded as sequences of bytes with variable length while UTF-16 charcters are represented by two bytes (wchar_t). When using CString objects, they will be CStringA or CStringW according to the Unicode setting of your project. You may use CStrings to convert between ANSI and Unicode:
LPCSTR lpszAnsi = "ANSI text";
LPWCSTR lpszWide = L"Unicode text";
CStringA strA = lpszWide; // Converts to Unicode
CStringW strW = lpszAnsi; // Converts to Unicode
But for UTF-8 conversions, you must use WideCharToMultiByte() and MultiByteToWideChar().
 
You may have a look at http://sourceforge.net/projects/hunspell/files/Misc/RichEdit/[^] which implements spell checking for a RichEdit control using Hunspell.
QuestionDialog Template is replacing Standard Dialog Pinmemberyogeshs27-Feb-13 23:11 
AnswerRe: Dialog Template is replacing Standard Dialog PinmvpRichard MacCutchan28-Feb-13 3:02 
GeneralRe: Dialog Template is replacing Standard Dialog Pinmemberyogeshs28-Feb-13 19:41 
GeneralRe: Dialog Template is replacing Standard Dialog PinmvpRichard MacCutchan28-Feb-13 22:01 
GeneralRe: Dialog Template is replacing Standard Dialog Pinmemberyogeshs1-Mar-13 0:33 
QuestionChange Network configuration using win32 VC++ Pinmembertoms from newdelhi27-Feb-13 22:13 
SuggestionRe: Change Network configuration using win32 VC++ PinmvpRichard MacCutchan28-Feb-13 3:01 
QuestionHow to change the size of Property sheet or Property Page in MFC.? Pinmembermbatra3127-Feb-13 18:11 
AnswerRe: How to change the size of Property sheet or Property Page in MFC.? PinmemberDavidCrow28-Feb-13 4:19 
QuestionHow to determine in runtime the class type of inhetited class from common base class? Pinmemberoleg6327-Feb-13 6:48 
QuestionRe: How to determine in runtime the class type of inhetited class from common base class? PinmemberDavidCrow27-Feb-13 7:09 
AnswerRe: How to determine in runtime the class type of inhetited class from common base class? Pinmemberoleg6327-Feb-13 7:12 
AnswerRe: How to determine in runtime the class type of inhetited class from common base class? PinmemberMaximilien27-Feb-13 8:02 
QuestionLinker error with CLSID defined in uuids.h PinmemberVaclav_Sal27-Feb-13 5:56 
AnswerRe: Linker error with CLSID defined in uuids.h PinmvpRichard MacCutchan27-Feb-13 6:19 
GeneralRe: Linker error with CLSID defined in uuids.h PinmemberVaclav_Sal27-Feb-13 6:38 
GeneralRe: Linker error with CLSID defined in uuids.h PinmvpRichard MacCutchan27-Feb-13 7:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 30 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid