Unable to convert to PCWSTR
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Unable to convert to PCWSTR

  1. #1
    Join Date
    Jun 2011
    Posts
    8

    Unable to convert to PCWSTR

    Hi,

    I am trying to call RtlInitUnicodeString()
    (http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx)

    The second parameter takes a PCWSTR and I'm trying to pass something like "Hello World!" as the string. How do I do this?

    Thanks

  2. #2
    Join Date
    May 2002
    Posts
    1,435

    Re: Unable to convert to PCWSTR

    You might try L"Hello World!" which should be a PCWSTR (pointer to constant wide-character string).

  3. #3
    Join Date
    May 2010
    Posts
    20

    Re: Unable to convert to PCWSTR

    Hi,
    try it with
    L"Hello World"

  4. #4
    Join Date
    Jun 2011
    Posts
    8

    Re: Unable to convert to PCWSTR

    Thanks, this worked!

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center