Re: LPCSTR, Unicode etc... don't understand
From: S_L (landa_sergey_at_yahoo.com)
Date: 08/23/04
- Next message: saurabh.chawla: "DataType Misalignment"
- Previous message: S_L: "Re: A question to the Handheld PC 2.0 Software Development Kit"
- Maybe in reply to: Doug Forster: "Re: LPCSTR, Unicode etc... don't understand"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: saurabh.chawla: "DataType Misalignment"
- Previous message: S_L: "Re: A question to the Handheld PC 2.0 Software Development Kit"
- Maybe in reply to: Doug Forster: "Re: LPCSTR, Unicode etc... don't understand"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|