Click here to Skip to main content
15,887,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Programming Pin
Joe Woodbury4-Mar-13 11:39
professionalJoe Woodbury4-Mar-13 11:39 
GeneralRe: MFC Programming Pin
Stephen Hewitt16-Mar-13 13:48
Stephen Hewitt16-Mar-13 13:48 
Questionhow to increase the width and height of a bitmap in mfc.? Pin
mbatra3128-Feb-13 19:53
mbatra3128-Feb-13 19:53 
AnswerRe: how to increase the width and height of a bitmap in mfc.? Pin
_Flaviu28-Feb-13 21:00
_Flaviu28-Feb-13 21:00 
GeneralRe: how to increase the width and height of a bitmap in mfc.? Pin
mbatra311-Mar-13 1:13
mbatra311-Mar-13 1:13 
AnswerRe: how to increase the width and height of a bitmap in mfc.? Pin
Jochen Arndt28-Feb-13 21:20
professionalJochen Arndt28-Feb-13 21:20 
QuestionHELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 Pin
andwan028-Feb-13 4:00
andwan028-Feb-13 4:00 
AnswerRe: HELP: UNICODE conversion sprung up problems with CString & CHARFORMAT2 Pin
Jochen Arndt28-Feb-13 4:52
professionalJochen 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:
C++
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
002comp27-Feb-13 23:11
002comp27-Feb-13 23:11 
AnswerRe: Dialog Template is replacing Standard Dialog Pin
Richard MacCutchan28-Feb-13 3:02
mveRichard MacCutchan28-Feb-13 3:02 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
002comp28-Feb-13 19:41
002comp28-Feb-13 19:41 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
Richard MacCutchan28-Feb-13 22:01
mveRichard MacCutchan28-Feb-13 22:01 
GeneralRe: Dialog Template is replacing Standard Dialog Pin
002comp1-Mar-13 0:33
002comp1-Mar-13 0:33 
QuestionChange Network configuration using win32 VC++ Pin
Sachin k Rajput 27-Feb-13 22:13
Sachin k Rajput 27-Feb-13 22:13 
SuggestionRe: Change Network configuration using win32 VC++ Pin
Richard MacCutchan28-Feb-13 3:01
mveRichard MacCutchan28-Feb-13 3:01 
QuestionHow to change the size of Property sheet or Property Page in MFC.? Pin
mbatra3127-Feb-13 18:11
mbatra3127-Feb-13 18:11 
AnswerRe: How to change the size of Property sheet or Property Page in MFC.? Pin
David Crow28-Feb-13 4:19
David Crow28-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
professionaloleg6327-Feb-13 6:48 
QuestionRe: How to determine in runtime the class type of inhetited class from common base class? Pin
David Crow27-Feb-13 7:09
David Crow27-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
professionaloleg6327-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
Maximilien27-Feb-13 8:02 
QuestionLinker error with CLSID defined in uuids.h Pin
Vaclav_27-Feb-13 5:56
Vaclav_27-Feb-13 5:56 
AnswerRe: Linker error with CLSID defined in uuids.h Pin
Richard MacCutchan27-Feb-13 6:19
mveRichard MacCutchan27-Feb-13 6:19 
GeneralRe: Linker error with CLSID defined in uuids.h Pin
Vaclav_27-Feb-13 6:38
Vaclav_27-Feb-13 6:38 
GeneralRe: Linker error with CLSID defined in uuids.h Pin
Richard MacCutchan27-Feb-13 7:25
mveRichard MacCutchan27-Feb-13 7:25 

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

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