Article View: borland.public.cppbuilder.nativeapi
Article #4242COPYDATASTRUCT problem
From: Nate Lockwood
Date: Sat, 25 Feb 2006 22:58
Date: Sat, 25 Feb 2006 22:58
25 lines
1566 bytes
1566 bytes
I send a message to a already running application from one that has just
been started. This works just fine AFAIK except when I try to get to
the LParam. Eventually I expect to retrieve a char string. I get this
error:
[C++ Error] Main.cpp(171): E2316 'WParam' is not a member of 'tagMSG'
I'm perplexed since I got this line from another post by a TeamB member.
Nate
void __fastcall TFormMain::AppMessage(MSG &Msg, bool &Handled)
{
if( (Msg.message == WM_MYMSG) && (WM_MYMSG != 0) )
{
COPYDATASTRUCT* cds = reinterpret_cast
<COPYDATASTRUCT*>(Msg.LParam); // compile error
FileList->Clear(); // TStringList *
Application->Restore();
Show();
Handled = true;
}
else
Handled = false;
}
Technical Details
Message-ID:
<4400e10b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,360125feb01249da,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 25 Feb 2006 14:58:23 -0800 From: Nate Lockwood <RNLockwoodREMOVE@attglobal.net> User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: COPYDATASTRUCT problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.234.59.217 Message-ID: <4400e10b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1140908299 69.234.59.217 (25 Feb 2006 14:58:19 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail