Article View: borland.public.cppbuilder.nativeapi
Article #11143Re: SendMessage BCB 6.0
From: Michel Leunen
Date: Mon, 23 Feb 2004 16:30
Date: Mon, 23 Feb 2004 16:30
22 lines
1609 bytes
1609 bytes
Mattdef wrote: > I use API SendMessageA in BCB 6.0 Windows application. > > My source code: > > SendMessageA(hwnd, WM_SETTEXT, 0, (LPARAM) &varText); > > I want to put a variable with a String type in last parameter but I have an > error. AnsiString varText = "whatever"; SendMessage(hwnd, WM_SETTEXT, 0, (LPARAM) varText.c_str()); Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, C++BuilderX, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<403a2ab4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<403a1118$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,873d1353349458d0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-23 08:40:57 PST Date: Mon, 23 Feb 2004 17:30:38 +0100 From: Michel Leunen <mleu@STOPSPAMskynet.be> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: SendMessage BCB 6.0 References: <403a1118$1@newsgroups.borland.com> In-Reply-To: <403a1118$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.240.77.117 Message-ID: <403a2ab4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077553844 81.240.77.117 (23 Feb 2004 08:30:44 -0800) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail