Click here to Skip to main content
15,919,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 14:01
James R. Twine28-Sep-06 14:01 
GeneralRe: std::string to const WCHAR* Pin
Jörgen Sigvardsson28-Sep-06 14:06
Jörgen Sigvardsson28-Sep-06 14:06 
QuestionRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 16:11
David Crow28-Sep-06 16:11 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 17:16
James R. Twine28-Sep-06 17:16 
GeneralRe: std::string to const WCHAR* Pin
David Crow29-Sep-06 2:39
David Crow29-Sep-06 2:39 
GeneralRe: std::string to const WCHAR* Pin
Stick^28-Sep-06 9:00
Stick^28-Sep-06 9:00 
GeneralRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 9:20
David Crow28-Sep-06 9:20 
AnswerRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 8:45
James R. Twine28-Sep-06 8:45 
   MultiByteToWideChar(...) is the de-facto way to convert from ANSI to Unicode (Wide) strings, so you can look into that.

   For something a little more Q&D, look into the (ATL) Conversion Macros like A2WC(...), T2WC(...), etc.  Note that on VC++ 6.0, these macros use the _alloc(...) function (if a conversion is required) so you have to be careful using them directly in loops.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

GeneralRe: std::string to const WCHAR* Pin
Stick^28-Sep-06 9:02
Stick^28-Sep-06 9:02 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine28-Sep-06 9:05
James R. Twine28-Sep-06 9:05 
GeneralRe: std::string to const WCHAR* Pin
Jörgen Sigvardsson28-Sep-06 14:09
Jörgen Sigvardsson28-Sep-06 14:09 
AnswerRe: std::string to const WCHAR* Pin
Zac Howland28-Sep-06 8:55
Zac Howland28-Sep-06 8:55 
GeneralRe: std::string to const WCHAR* Pin
Stick^28-Sep-06 9:03
Stick^28-Sep-06 9:03 
GeneralRe: std::string to const WCHAR* Pin
David Crow28-Sep-06 9:23
David Crow28-Sep-06 9:23 
GeneralRe: std::string to const WCHAR* Pin
Zac Howland28-Sep-06 9:24
Zac Howland28-Sep-06 9:24 
GeneralRe: std::string to const WCHAR* Pin
Stick^28-Sep-06 11:41
Stick^28-Sep-06 11:41 
GeneralRe: std::string to const WCHAR* [modified] Pin
George L. Jackson28-Sep-06 12:50
George L. Jackson28-Sep-06 12:50 
GeneralRe: std::string to const WCHAR* Pin
Jörgen Sigvardsson28-Sep-06 14:14
Jörgen Sigvardsson28-Sep-06 14:14 
GeneralRe: std::string to const WCHAR* Pin
Stick^29-Sep-06 6:54
Stick^29-Sep-06 6:54 
GeneralRe: std::string to const WCHAR* Pin
Zac Howland29-Sep-06 3:33
Zac Howland29-Sep-06 3:33 
GeneralRe: std::string to const WCHAR* Pin
James R. Twine30-Sep-06 18:40
James R. Twine30-Sep-06 18:40 
GeneralRe: std::string to const WCHAR* Pin
Stick^29-Sep-06 6:52
Stick^29-Sep-06 6:52 
QuestionNewbie Help Please Pin
Mithin28-Sep-06 7:18
Mithin28-Sep-06 7:18 
QuestionRe: Newbie Help Please Pin
David Crow28-Sep-06 7:51
David Crow28-Sep-06 7:51 
AnswerRe: Newbie Help Please Pin
Mithin28-Sep-06 8:14
Mithin28-Sep-06 8:14 

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.