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

Thread: unicode strings

  1. #1
    Join Date
    Jan 2011
    Posts
    5

    unicode strings

    Hello to all developer,
    I'm new in visual c++ programming and sorry for my english, it's not my first language.

    I have to call an external Delphi DLL inside a Visual c++ application.
    The DLL has one parameter of type PWideString. This is a pointer to a Unicode string.
    My question is: witch corresponding type can I use in Visual c++ ?

    Thanks in advance

    Roverix

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: unicode strings

    LPWSTR or, if the string is constant, LPCWSTR. If your VC++ project is a Unicode project, LPTSTR and LPCTSTR are identical to those.

    HTH

    Ah, and... Welcome to CodeGuru!
    Last edited by Eri523; January 21st, 2011 at 06:47 AM.
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

  3. #3
    Join Date
    Jan 2011
    Posts
    5

    Re: unicode strings

    Hello Eri523, thanks for you answer.
    I will try it in the next days. I hope to get the result I need,
    otherwise I will ask here again.

    Roverix

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

Featured