Re: LPCSTR, Unicode etc... don't understand

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: S_L (landa_sergey_at_yahoo.com)
Date: 08/23/04


Date: 22 Aug 2004 21:45:06 -0700

Fred:
Windows CE uses only double-byte (UNICODE) format of charachters for
I/O.
You MUST convert all chars to/from double byte formats (Here is one
key word: "TEXT", just go to the GLOSSARY). Also, you may want to open
TCHAR.H file.......
Many standard well-known APIs exist in two(or more) different forms
(char, wchar, tchar, ... - description of API will show you all
"brothers" and "sisters")
It is really not that hard at all, just be careful ........
S_L
"Frederic Sakr" <sakrf@hotmail.com> wrote in message news:<e2JpssHiEHA.1652@TK2MSFTNGP09.phx.gbl>...
> I have big problem with LPCSTR and thing like that.
> In VC++6.0 no problem, in embedded vc++3.0 he says
> cannot convert parameter 2 from 'unsigned short *' to 'const char *'.
> So i use reinterpret_cast but i don't like that, because a need to change
> code each time.
>
> I would like to know if someone can help me about that, if they exist some
> value in the project setting or other to make work in both platform with the
> same code.
>
> Thanx alot.
>
> Fred



Relevant Pages

  • Re: Tweaking the postscript printer driver
    ... "vipin" wrote: ... > Printer driver is one that would convert to printer specific format, ... > apis and then pass to the printer driver. ... > Printer driver comes into play when you use the GDI win32 apis. ...
    (microsoft.public.development.device.drivers)
  • Re: Tie::File problem (or is it just me?)
    ... > IRC messages are always lines of characters terminated with a CR-LF ... but is there a trick in Windows to get to see which chars ... Use Ctrl O, then under File Format in the new window, choose "Binary", and ...
    (perl.beginners)
  • Re: How can we generate a fixed length text file in C#?
    ... use format strings to generate your output. ... if you have one 80-char left-aligned string field followed ... chars, you'll need to handle those cases specially as per your output ... format specification. ...
    (microsoft.public.dotnet.languages.csharp)
  • Varying Column Widths for Text Import
    ... So the 3 different layouts have different column widths. ... and then back to Format 1. ...
    (microsoft.public.excel.misc)
  • Implementation of SqlDataReader and ExecuteReader
    ... ExecuteReader. ... Assume I have a Recordset pointing to rows of data in the format above. ... My intention is to understand how are the APIs themselves implemented. ... before compile time) and then go on reading from table. ...
    (microsoft.public.dotnet.languages.csharp)