Click here to Skip to main content
11,639,178 members (67,585 online)

C / C++ / MFC

 
AnswerRe: MFC Programming Pin
Joe Woodbury4-Mar-13 11:39
memberJoe Woodbury4-Mar-13 11:39 
GeneralRe: MFC Programming Pin
Stephen Hewitt16-Mar-13 13:48
memberStephen Hewitt16-Mar-13 13:48 
Questionhow to increase the width and height of a bitmap in mfc.? Pin
mbatra3128-Feb-13 19:53
membermbatra3128-Feb-13 19:53 
AnswerRe: how to increase the width and height of a bitmap in mfc.? Pin
Flaviu228-Feb-13 21:00
memberFlaviu228-Feb-13 21:00 
GeneralRe: how to increase the width and height of a bitmap in mfc.? Pin
mbatra311-Mar-13 1:13
membermbatra311-Mar-13 1:13 
AnswerRe: how to increase the width and height of a bitmap in mfc.? Pin
Jochen Arndt28-Feb-13 21:20
memberJochen Arndt28-Feb-13 21:20 
QuestionHELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 Pin
andwan028-Feb-13 4:00
memberandwan028-Feb-13 4:00 
AnswerRe: HELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 Pin
Jochen Arndt28-Feb-13 4:52
memberJochen 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 Pin
yogeshs27-Feb-13 23:11
memberyogeshs27-Feb-13 23:11 
AnswerRe: Dialog Template is replacing Standard Dialog Pin
Richard MacCutchan28-Feb-13 3:02
mvpRichard MacCutchan28-Feb-13 3:02 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
yogeshs28-Feb-13 19:41
memberyogeshs28-Feb-13 19:41 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
Richard MacCutchan28-Feb-13 22:01
mvpRichard MacCutchan28-Feb-13 22:01 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
yogeshs1-Mar-13 0:33
memberyogeshs1-Mar-13 0:33 
QuestionChange Network configuration using win32 VC++ Pin
toms from newdelhi27-Feb-13 22:13
membertoms from newdelhi27-Feb-13 22:13 
SuggestionRe: Change Network configuration using win32 VC++ Pin
Richard MacCutchan28-Feb-13 3:01
mvpRichard MacCutchan28-Feb-13 3:01 
QuestionHow to change the size of Property sheet or Property Page in MFC.? Pin
mbatra3127-Feb-13 18:11
membermbatra3127-Feb-13 18:11 
AnswerRe: How to change the size of Property sheet or Property Page in MFC.? Pin
DavidCrow28-Feb-13 4:19
memberDavidCrow28-Feb-13 4:19 
QuestionHow to determine in runtime the class type of inhetited class from common base class? Pin
oleg6327-Feb-13 6:48
memberoleg6327-Feb-13 6:48 
QuestionRe: How to determine in runtime the class type of inhetited class from common base class? Pin
DavidCrow27-Feb-13 7:09
memberDavidCrow27-Feb-13 7:09 
AnswerRe: How to determine in runtime the class type of inhetited class from common base class? Pin
oleg6327-Feb-13 7:12
memberoleg6327-Feb-13 7:12 
AnswerRe: How to determine in runtime the class type of inhetited class from common base class? Pin
Maximilien27-Feb-13 8:02
memberMaximilien27-Feb-13 8:02 
QuestionLinker error with CLSID defined in uuids.h Pin
Vaclav_Sal27-Feb-13 5:56
memberVaclav_Sal27-Feb-13 5:56 
AnswerRe: Linker error with CLSID defined in uuids.h Pin
Richard MacCutchan27-Feb-13 6:19
mvpRichard MacCutchan27-Feb-13 6:19 
GeneralRe: Linker error with CLSID defined in uuids.h Pin
Vaclav_Sal27-Feb-13 6:38
memberVaclav_Sal27-Feb-13 6:38 
GeneralRe: Linker error with CLSID defined in uuids.h Pin
Richard MacCutchan27-Feb-13 7:25
mvpRichard 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
Web03 | 2.8.150728.1 | Last Updated 30 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid