Article View: borland.public.cppbuilder.nativeapi
Article #4275Re: Continuing problem with SendMessage and WM_CCOPYDATA
From: Dennis Jones
Date: Tue, 28 Feb 2006 16:07
Date: Tue, 28 Feb 2006 16:07
32 lines
1990 bytes
1990 bytes
"JD" <nospam@nospam.com> wrote in message news:44046dac$1@newsgroups.borland.com... > > "Dennis Jones" <nospam@nospam.com> wrote: > > > > [...] if all you want to do is prevent a second instance > > from running and instead just bring the first instance to > > the foreground, you don't need to use SendMessage to do that. > > Where were you when I was working on my TSingleInstance? > > HWND MainFormHWnd = FindWindow( "TMyApplicationMainForm", NULL ); > > I have a problem with this line because you could get the > wrong instance. Wait...if you can only have one instance running, then how could you possibly get the wrong instance? > Alot of people looked at this, including Gambit and at least > 2 other TeamB members commented and even though we all knew > that TApplication has a hidden window, none of us thought of > it being important. That's funny, because I am almost positive that I found that little tidbit in one of Remy's (Gambit) posts! - Dennis
Technical Details
Message-ID:
<4404752a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44021981$1@newsgroups.borland.com> <44024219$1@newsgroups.borland.com> <44046dac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6afbc9bf5041d787 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44021981$1@newsgroups.borland.com> <44024219$1@newsgroups.borland.com> <44046dac$1@newsgroups.borland.com> Subject: Re: Continuing problem with SendMessage and WM_CCOPYDATA Date: Tue, 28 Feb 2006 08:07:08 -0800 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 204.200.27.7 Message-ID: <4404752a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141142826 204.200.27.7 (28 Feb 2006 08:07:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail