🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3130

OnDeviceChange Problem

#3130
From: Uri
Date: Tue, 17 Oct 2006 12:57
27 lines
1431 bytes
Hi, when I connect OR disconnect the USB connector I reach the 
breakpoint in function "OnDeviceChange", but the parameters 
of 'm' are stay the same (it is not right), why?

Thanks.


public:		// User declarations
 __fastcall TUSBApp_form(TComponent* Owner);
        // Overriding a message handle

 //Messages::TMessage message;
 void OnDeviceChange(Messages::TMessage );

 BEGIN_MESSAGE_MAP
   MESSAGE_HANDLER(WM_DEVICECHANGE , Messages::TMessage , OnDeviceChange)
 END_MESSAGE_MAP(TComponent)

//---------------------------------------------------------------

void TUSBApp_form::OnDeviceChange(Messages::TMessage m)
{
 //USBC->OnDeviceChange(m);

 return;  // Breakpoint Here 
}
Technical Details
Message-ID: <4534d31d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a72a1c41eec7e70f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Uri" <Uri@MyMail.com>
Sender: "Uri" <Uri@MyMail.com>
Reply-To: "Uri" <Uri@MyMail.com>
Subject: OnDeviceChange Problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.0.27.159     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4534d31d$1@newsgroups.borland.com>
Date: 17 Oct 2006 05:57:01 -0700
X-Trace: newsgroups.borland.com 1161089821 207.105.83.66 (17 Oct 2006 05:57:01 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail