Click here to Skip to main content
15,904,287 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Looking for good example for CMFCPropertyGridCtrl . Pin
«_Superman_»1-Mar-13 16:31
professional«_Superman_»1-Mar-13 16:31 
QuestionMFC Programming Pin
Unque28-Feb-13 22:50
Unque28-Feb-13 22:50 
AnswerRe: MFC Programming Pin
Richard MacCutchan1-Mar-13 0:40
mveRichard MacCutchan1-Mar-13 0:40 
GeneralRe: MFC Programming Pin
Unque5-Mar-13 22:50
Unque5-Mar-13 22:50 
AnswerRe: MFC Programming Pin
Captain Price1-Mar-13 4:06
professionalCaptain Price1-Mar-13 4:06 
AnswerRe: MFC Programming Pin
Alan Balkany1-Mar-13 4:09
Alan Balkany1-Mar-13 4:09 
GeneralRe: MFC Programming Pin
Captain Price1-Mar-13 21:06
professionalCaptain Price1-Mar-13 21:06 
GeneralRe: MFC Programming Pin
Erudite_Eric2-Mar-13 20:12
Erudite_Eric2-Mar-13 20:12 
GeneralRe: MFC Programming Pin
Alan Balkany4-Mar-13 3:39
Alan Balkany4-Mar-13 3:39 
GeneralRe: MFC Programming Pin
Joe Woodbury4-Mar-13 11:46
professionalJoe Woodbury4-Mar-13 11:46 
GeneralRe: MFC Programming Pin
Alan Balkany4-Mar-13 11:50
Alan Balkany4-Mar-13 11:50 
GeneralRe: MFC Programming Pin
Joe Woodbury4-Mar-13 14:03
professionalJoe Woodbury4-Mar-13 14:03 
AnswerRe: MFC Programming Pin
oleg631-Mar-13 6:11
professionaloleg631-Mar-13 6:11 
GeneralRe: MFC Programming Pin
Unque5-Mar-13 22:51
Unque5-Mar-13 22:51 
AnswerRe: MFC Programming Pin
«_Superman_»1-Mar-13 16:28
professional«_Superman_»1-Mar-13 16:28 
GeneralRe: MFC Programming Pin
Unque5-Mar-13 22:57
Unque5-Mar-13 22:57 
AnswerRe: MFC Programming Pin
Stephen Hewitt2-Mar-13 12:27
Stephen Hewitt2-Mar-13 12:27 
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.

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.