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

C / C++ / MFC

 
AnswerRe: Load a class depending on a string Pin
Waldermort1-Feb-07 23:21
Waldermort1-Feb-07 23:21 
QuestionRe: Load a class depending on a string Pin
David Crow2-Feb-07 2:46
David Crow2-Feb-07 2:46 
AnswerRe: Load a class depending on a string Pin
jhwurmbach2-Feb-07 3:05
jhwurmbach2-Feb-07 3:05 
AnswerRe: Load a class depending on a string Pin
Cedric Moonen2-Feb-07 4:10
Cedric Moonen2-Feb-07 4:10 
GeneralRe: Load a class depending on a string Pin
Mark Salsbery2-Feb-07 5:53
Mark Salsbery2-Feb-07 5:53 
GeneralRe: Load a class depending on a string Pin
Cedric Moonen2-Feb-07 6:28
Cedric Moonen2-Feb-07 6:28 
GeneralRe: Load a class depending on a string Pin
Mark Salsbery2-Feb-07 7:11
Mark Salsbery2-Feb-07 7:11 
QuestionConvert LPWSTR to LPSTR Pin
ajitatif angajetor1-Feb-07 22:39
ajitatif angajetor1-Feb-07 22:39 
Hi everyone,

I need to convert a unicode LPWSTR to multi-byte LPSTR.wcstombs_s doesn't do good,because it replaces non-english characters to their english likes (like ş->s and ı>i).

WideCharToMultiByte function seems to do this right,but the double-byte characters in the converted LPSTR are interpreted as if they are two single-byte characters.

to be more specific,I use MAPI dll to send an e-mail.MAPI dll expects all strings to be LPSTR which maps to int.but i want to use non-english characters in e-mail's body/subject/attached files' names,and couldn't find a solution yet.it's all good when strings are in english,because all unicode characters map to a signed char then.but when i get a non-english character,"problem".LPSTR seems to interpret all characters to be single-byte.

any suggestions?
AnswerRe: Convert LPWSTR to LPSTR Pin
jhwurmbach1-Feb-07 22:46
jhwurmbach1-Feb-07 22:46 
QuestionCan load custom control with dll resource Pin
dungpapai1-Feb-07 22:36
dungpapai1-Feb-07 22:36 
Questionavailable characters Pin
vlad.gs1-Feb-07 22:19
vlad.gs1-Feb-07 22:19 
AnswerRe: available characters Pin
Naveen2-Feb-07 1:02
Naveen2-Feb-07 1:02 
GeneralRe: available characters Pin
vlad.gs2-Feb-07 1:44
vlad.gs2-Feb-07 1:44 
GeneralRe: available characters Pin
Hamid_RT14-Feb-07 6:15
Hamid_RT14-Feb-07 6:15 
AnswerRe: available characters Pin
Mark Salsbery2-Feb-07 6:41
Mark Salsbery2-Feb-07 6:41 
AnswerRe: available characters Pin
Mark Salsbery2-Feb-07 7:12
Mark Salsbery2-Feb-07 7:12 
Questioncan't get the updated data during Win32 Release Pin
MrKyaw1-Feb-07 22:11
MrKyaw1-Feb-07 22:11 
QuestionConversion Hex string to ASCII value Pin
Ram Murali1-Feb-07 22:00
Ram Murali1-Feb-07 22:00 
AnswerRe: Conversion Hex string to ASCII value Pin
Roger Stoltz1-Feb-07 22:18
Roger Stoltz1-Feb-07 22:18 
GeneralRe: Conversion Hex string to ASCII value Pin
Ram Murali1-Feb-07 22:39
Ram Murali1-Feb-07 22:39 
AnswerRe: Conversion Hex string to ASCII value Pin
Roger Stoltz1-Feb-07 23:29
Roger Stoltz1-Feb-07 23:29 
GeneralRe: Conversion Hex string to ASCII value Pin
Ram Murali1-Feb-07 23:53
Ram Murali1-Feb-07 23:53 
GeneralRe: Conversion Hex string to ASCII value Pin
Naveen2-Feb-07 0:59
Naveen2-Feb-07 0:59 
GeneralRe: Conversion Hex string to ASCII value Pin
Roger Stoltz2-Feb-07 1:00
Roger Stoltz2-Feb-07 1:00 
GeneralRe: Conversion Hex string to ASCII value Pin
Ram Murali4-Feb-07 14:28
Ram Murali4-Feb-07 14:28 

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.