🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2561

Re: Getting Message with WinMain

#2561
From: Remy Lebeau (TeamB)
Date: Tue, 13 Feb 2007 17:53
16 lines
1675 bytes
"poojo hackma" <poojo.com/mail> wrote in message
news:45d1f7ef@newsgroups.borland.com...

> Why do most people use TEXT("This is text") instead of L"This is
text"?

Using 'L' forces the compiler to generate the string literal as a
wchar_t* string.  Using the TEXT() or _T() macros instead allows the
string literal to be either char* or wchar_t* depending on whether the
project is compiled for Unicode or not.  Same with the TCHAR and
LPTSTR macros - they map to either char or wchar_t accordingly as
well.  That is the portability that I was referring to earlier.


Gambit
Technical Details
Message-ID: <45d1fb3e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45d0cc1f@newsgroups.borland.com> <45d0cf87$1@newsgroups.borland.com> <45d0ea45$1@newsgroups.borland.com> <45d0f730$1@newsgroups.borland.com> <45d1f7ef@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ece89f4506d844ba
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45d0cc1f@newsgroups.borland.com> <45d0cf87$1@newsgroups.borland.com> <45d0ea45$1@newsgroups.borland.com> <45d0f730$1@newsgroups.borland.com> <45d1f7ef@newsgroups.borland.com>
Subject: Re: Getting Message with WinMain
Date: Tue, 13 Feb 2007 09:53:46 -0800
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45d1fb3e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1171389246 75.83.34.171 (13 Feb 2007 09:54:06 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!128.230.129.106!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail