Article View: borland.public.cppbuilder.nativeapi
Article #2559Re: Getting Message with WinMain
From: poojo hackma
Date: Tue, 13 Feb 2007 17:40
Date: Tue, 13 Feb 2007 17:40
26 lines
2264 bytes
2264 bytes
Thanks Gambit.
Wow, that's good stuff. I was sure there was a way out of my loop dilemma,
but the functions were all new to me. Determining the proper way to use them
together was posing a riddle. LOL
I've never come across CharNext or DefWindowProc, but they are in my
"Bag-O-Tricks" now. :)
I modified my Say function to prevent altering static memory. I probably
would have realized that had I looked closely enough at it.
As you've probably guessed, this is a Windows CE application. That was why I
declared everything as wchar_t, but you are right: The code is more portable
with TCHAR.
Let me ask this: Why do most people use TEXT("This is text") instead of
L"This is text"?
Having my little pinky hold down the shift key while I type just seems a
little like busy work, but there may be portability reasons that I'm not
aware of. My help says TEXT is a macro for the "L" version. I just want to
make sure I'm not missing something.
Regards,
PJ
Technical Details
Message-ID:
<45d1f7ef@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<45d0cc1f@newsgroups.borland.com> <45d0cf87$1@newsgroups.borland.com> <45d0ea45$1@newsgroups.borland.com> <45d0f730$1@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: "poojo hackma" <poojo.com/mail> 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> Subject: Re: Getting Message with WinMain Date: Tue, 13 Feb 2007 11:40:20 -0600 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 000712-7, 02/12/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 12.191.89.68 Message-ID: <45d1f7ef@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171388399 12.191.89.68 (13 Feb 2007 09:39:59 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!homer!news.glorb.com!news-spur1.glorb.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail