Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Serialize in DLL Pin
Mark Salsbery3-May-07 6:50
Mark Salsbery3-May-07 6:50 
QuestionWaveIn API and MFC - need some theory background help Pin
Vaclav_2-May-07 17:34
Vaclav_2-May-07 17:34 
AnswerRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery3-May-07 7:15
Mark Salsbery3-May-07 7:15 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Vaclav_3-May-07 7:34
Vaclav_3-May-07 7:34 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery3-May-07 7:40
Mark Salsbery3-May-07 7:40 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Vaclav_3-May-07 17:36
Vaclav_3-May-07 17:36 
GeneralRe: WaveIn API and MFC - need some theory background help Pin
Mark Salsbery4-May-07 4:34
Mark Salsbery4-May-07 4:34 
Questionwide character (unicode) and multi-byte character Pin
George_George2-May-07 17:02
George_George2-May-07 17:02 
Hello everyone,


Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when talking with another team -- codepage -- at the same time.

I am more confused when I saw sometimes we need codepage parameter for wide character conversion, and sometimes we do not need for conversion. Here are two examples,

code page is used in WideCharToMultiByte when dealing with unciode character

int WideCharToMultiByte (
UINT CodePage,
DWORD dwFlags,
LPCWSTR lpWideCharStr,
int cchWideChar,
LPSTR lpMultiByteStr,
int cbMultiByte,
LPCSTR lpDefaultChar,
LPBOOL lpUsedDefaultChar );

code page is not used in wcstombs when dealing with unciode character

size_t wcstombs (
char* mbstr,
const wchar_t* wcstr,
size_t count );

My question is, what is codepage (seems my current understanding is not correct)? Does codepage have anything to do with multi-byte character or only have relationship with wide character? Could anyone explain the meaning and relationship between codepage, wide character and multi-byte character?


thanks in advance,
George
AnswerRe: wide character (unicode) and multi-byte character [modified] Pin
Mark Salsbery3-May-07 7:33
Mark Salsbery3-May-07 7:33 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George4-May-07 2:26
George_George4-May-07 2:26 
GeneralRe: wide character (unicode) and multi-byte character Pin
Mark Salsbery4-May-07 5:06
Mark Salsbery4-May-07 5:06 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George4-May-07 20:49
George_George4-May-07 20:49 
GeneralRe: wide character (unicode) and multi-byte character Pin
Mark Salsbery5-May-07 5:52
Mark Salsbery5-May-07 5:52 
GeneralRe: wide character (unicode) and multi-byte character Pin
George_George6-May-07 21:40
George_George6-May-07 21:40 
QuestionHow to get a mini dump? Pin
Super Lloyd2-May-07 13:32
Super Lloyd2-May-07 13:32 
AnswerRe: How to get a mini dump? Pin
Peter Weyzen2-May-07 15:23
Peter Weyzen2-May-07 15:23 
GeneralRe: How to get a mini dump? [modified] Pin
Super Lloyd2-May-07 15:49
Super Lloyd2-May-07 15:49 
GeneralRe: How to get a mini dump? Pin
Super Lloyd2-May-07 17:20
Super Lloyd2-May-07 17:20 
QuestionWrappers Pin
huehue2-May-07 9:20
huehue2-May-07 9:20 
AnswerRe: Wrappers Pin
Mark Salsbery2-May-07 9:31
Mark Salsbery2-May-07 9:31 
AnswerRe: Wrappers Pin
Maximilien2-May-07 9:35
Maximilien2-May-07 9:35 
AnswerRe: Wrappers Pin
CPallini2-May-07 10:09
mveCPallini2-May-07 10:09 
AnswerRe: Wrappers Pin
Stephen Hewitt2-May-07 21:45
Stephen Hewitt2-May-07 21:45 
GeneralRe: Wrappers Pin
huehue3-May-07 6:37
huehue3-May-07 6:37 
QuestionMigrating MFC to Windows Forms Pin
earlgraham2-May-07 8:53
earlgraham2-May-07 8:53 

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.