Re: LPCSTR from String

From: Jochen Kalmbach (nospam-Jochen.Kalmbach_at_holzma.de)
Date: 02/15/05


Date: Tue, 15 Feb 2005 03:25:16 -0800

Hi =?Utf-8?B?Qmlqb3k=?=,

> I don't know much about LPCSTR, but belive this can hold pointer
> to both ANSI and UNICODE string.

No, LPCSTR only handles ANSI (or MBCS) strings (char*)

To support bith you should use LPCTSTR.

> Up from NT5 windows uses unicode, can some
> one explane on these context
???

Starting with NT (3.01) it uses unicode as fundamental string encoding!

-- 
Greetings
  Jochen
   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/


Relevant Pages

  • Re: Microsoft Layer for Unicode on Windows 95/98/Me systems
    ... >> then back to ANSI again for the API call. ... >> unicode string that VB is using. ... is pointing to a unicode string. ... > creates toolbar/menu and inserts code), and installs the referenced DLL. ...
    (microsoft.public.vb.winapi)
  • Re: Did Borland doing well in Q4? Listen to the Earning CC
    ... AS an ANSI application you will need to change all "String" ... declarations to "ANSIString" (and Char to ANSIChar and PChar to ... Only THEN can you start thinking about how Unicode is best ... Even the specifically "ANSI" FS routines do not use ...
    (borland.public.delphi.non-technical)
  • Re: Ansi colors
    ... Here I go with a more detailed description of the ANSI sequence. ... As String, ClassName As String, FunctionName As String, Msg As String) ... Private Property Get ColorYellowAs String ...
    (comp.lang.basic.visual.misc)
  • Re: Converting a LPSTR* to BSTR* and back again.
    ... int ListItem(int itemNumber, ref string buffer, int tabbed, int ... you may consider the following code to convert BSTR ANSI (I ... // Convert an ANSI string to a BSTR ...
    (microsoft.public.vc.mfc)
  • Re: Converting a LPSTR* to BSTR* and back again.
    ... int ListItem(int itemNumber, ref string buffer, int tabbed, int ... you may consider the following code to convert BSTR ANSI (I ... // Convert an ANSI string to a BSTR ...
    (microsoft.public.vc.mfc)