Article View: borland.public.cppbuilder.nativeapi
Article #11144Re: SendMessage BCB 6.0
From: Mattdef
Date: Mon, 23 Feb 2004 16:52
Date: Mon, 23 Feb 2004 16:52
27 lines
1615 bytes
1615 bytes
Thanks!! "Michel Leunen" <mleu@STOPSPAMskynet.be> a οΏ½crit dans le message de news:403a2ab4@newsgroups.borland.com... > 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:
<403a2fed@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<403a1118$1@newsgroups.borland.com> <403a2ab4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,873d1353349458d0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-23 09:10:43 PST From: "Mattdef" <lembrouilleurrr@netscape.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403a1118$1@newsgroups.borland.com> <403a2ab4@newsgroups.borland.com> Subject: Re: SendMessage BCB 6.0 Date: Mon, 23 Feb 2004 17:52:56 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 194.149.187.172 Message-ID: <403a2fed@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077555181 194.149.187.172 (23 Feb 2004 08:53:01 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail