Re: newbie help

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



Hi Rod,

In addition to what Igor posted, you will also want to use TCHAR instead of char and the appropriate string functions that also start with _t... like:

http://msdn2.microsoft.com/en-us/library/kk6xf663(VS.80).aspx

If you use these macros you will be able to compile your program either for ANSI or Unicode (for the most part) so it's a good idea to just get in the habit of using them rather than just typing in the strings.

I'm building all my new projects in Unicode these days so it likely doesn't matter for that except that it's almost as easy to type _T("Text") as it is to type L"Text" so ...

Tom

"rodchar" <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1FE7868C-433F-4E33-82CC-555541B445F6@xxxxxxxxxxxxxxxx
Thanks for that, another question if I may...
What is _T macro?

"Igor Tandetnik" wrote:

rodchar <rodchar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Win95 was 16-bit?

No, but VC++ 1.0 is. VC++ 1.0 builds executables for DOS and Win3.1. It
cannot build a Win32 executable (mainly because it predates Win32 by a
few years).
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925




.



Relevant Pages

  • Re: LoadImage
    ... CE is unicode, so the whole CE API needs wide char. ... You have to use some of these macros to indicate that you want wide char: ...
    (microsoft.public.pocketpc.developer)
  • Re: trim function dumping core
    ... I am not sure what should be the behaviour of l/r/all trim against NULL ... ptr, on my sys is Seg Fault. ... char* trim ... It is up to the caller to ensure against NULL pointers passed to string functions, ...
    (comp.lang.c)
  • Re: Break Word
    ... > How can i detect after submitting if any word ... > If so, break it at the 14th char, add a dash, ... http://www.php.net/manual -> string functions. ...
    (comp.lang.php)
  • Re: Comment on trim string function please
    ... Why not return a char *, like most other string functions? ... char *TrimCString(char *str) ... Maybe use memmoveinstead of the loop. ...
    (comp.lang.c)
  • Re: Another Understanding Pointers Question
    ... > that I was using pointers in the correct way. ... but I just wanted to test writing my own functions. ... As far as I think your string functions ... char *left ...
    (comp.lang.c)