Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. string convertion

string convertion

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jhony george
    wrote on last edited by
    #1

    hai.., i am trying to create an MSMQ. in this i am having char* string value....now i want to convert it to LPWSTR string ...how to convert this... is any one knows reply me....

    Born to win...!

    H J D 3 Replies Last reply
    0
    • J Jhony george

      hai.., i am trying to create an MSMQ. in this i am having char* string value....now i want to convert it to LPWSTR string ...how to convert this... is any one knows reply me....

      Born to win...!

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See MultiByteToWideChar.

      1 Reply Last reply
      0
      • J Jhony george

        hai.., i am trying to create an MSMQ. in this i am having char* string value....now i want to convert it to LPWSTR string ...how to convert this... is any one knows reply me....

        Born to win...!

        J Offline
        J Offline
        jhwurmbach
        wrote on last edited by
        #3

        Try ::mbtowcs And be sure to read the texts about conversion linked in that MSDN-Article.


        Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
        George Orwell, "Keep the Aspidistra Flying", Opening words

        J T 2 Replies Last reply
        0
        • J jhwurmbach

          Try ::mbtowcs And be sure to read the texts about conversion linked in that MSDN-Article.


          Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
          George Orwell, "Keep the Aspidistra Flying", Opening words

          J Offline
          J Offline
          Jhony george
          wrote on last edited by
          #4

          thanks for ur help dears, i solved the issue..

          Born to win...!

          1 Reply Last reply
          0
          • J Jhony george

            hai.., i am trying to create an MSMQ. in this i am having char* string value....now i want to convert it to LPWSTR string ...how to convert this... is any one knows reply me....

            Born to win...!

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Have you considered the A2W() macro?


            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            1 Reply Last reply
            0
            • J jhwurmbach

              Try ::mbtowcs And be sure to read the texts about conversion linked in that MSDN-Article.


              Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
              George Orwell, "Keep the Aspidistra Flying", Opening words

              T Offline
              T Offline
              ThatsAlok
              wrote on last edited by
              #6

              jhwurmbach wrote:

              Try ::mbtowcs

              little correction brother:- it is mb**s**towcs

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
              Never mind - my own stupidity is the source of every "problem" - Mixture

              cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups