Results 1 to 6 of 6

Thread: stl::string to LPCWSTR

Threaded View

  1. #1

    Thread Starter
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    stl::string to LPCWSTR

    It seems a lot of functions want to force UNICODE correct programming. This is driving me into the wall...

    How can I convert a string to a LPCWSTR value? Everytime I try I seem to end up with chinese/gibberish.

    I know my app has UNICODE on but I've read everywhere that VS2005 makes all appropriate changes automatically. So string is really typedef`d as wstring or something.

    Any advice on getting this set up properly would be great.

    Thanks,
    Halsafar
    Last edited by Halsafar; Feb 16th, 2006 at 06:10 PM.
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width