Hi all, lets say i have this function in a ReadWrite.cpp file: void CReadWriteDlg::OnButton4() { AfxMessageBox("test"); } how do i call this function from a function in a different file altogether, say, SystemTray.cpp: void CSystemTray::OnMyDeviceChange(WPARAM wParam, LPARAM lParam) { CReadWriteDlg::OnButton4(); //whats the correct syntax for this??? . . . . } any help is greatly appreciated! thanks!
sowhat_82
Posts
-
how to call a function from a different class? -
need help on detecting the insertion of a USB deviceHi all, I need to be able to do something when a particular USB device is connected. the closest i've come to understanding this topic is using the WM_DEVICECHANGE, but i'm not really sure how to use it. i've also found this webpage: http://msdn2.microsoft.com/en-us/library/aa363215.aspx it talks about how to handle an insertion of a CDROM. however, i'm also not really sure how to use this function. does the Main_OnDeviceChange function gets called automatically when a cd is inserted? how do i use this function in my MFC dialog based application? and i need to tweak it to detect the insertion of a USB device instead of a CD. can someone please help me! any help is greatly appreciated... thanks Loath
-
Auto pop-up a program when USB device connectedoops, sorry bout that. Not really sure which forum it belongs too...
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Sowhat_82
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Sowhat_82
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Sowhat_82
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Alvin
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, sowhat_82
-
Auto pop-up a program when USB device connectedHi all, I need to be able to automatically run a program of my choice, say an .exe or a VC++ program, when a particular USB device is plugged in. Does anyone know how to do it, or know where i can find more information about this topic? any help is greatly appreciated! thanks and regards, Alvin