Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: windows keyboard hook / postmessage / sendmessage Pin
viral_umang@hotmail.com22-Feb-07 4:07
viral_umang@hotmail.com22-Feb-07 4:07 
GeneralRe: windows keyboard hook / postmessage / sendmessage Pin
Cedric Moonen22-Feb-07 4:17
Cedric Moonen22-Feb-07 4:17 
AnswerRe: windows keyboard hook / postmessage / sendmessage Pin
AprNgp22-Feb-07 6:26
AprNgp22-Feb-07 6:26 
QuestionReading text file.. Code works but how to include with rest program ? Pin
Software_Specialist22-Feb-07 3:00
Software_Specialist22-Feb-07 3:00 
GeneralRe: Reading text file.. Code works but how to include with rest program ? Pin
Programm3r22-Feb-07 3:41
Programm3r22-Feb-07 3:41 
QuestionRe: Reading text file.. Code works but how to include with rest program ? Pin
David Crow22-Feb-07 5:56
David Crow22-Feb-07 5:56 
GeneralRe: Reading text file.. Code works but how to include with rest program ? Pin
Mark Salsbery22-Feb-07 7:09
Mark Salsbery22-Feb-07 7:09 
QuestionDetection of USB device Pin
Vjys22-Feb-07 2:18
Vjys22-Feb-07 2:18 
I did some coding in VC++ to detect a device connected to the PC.
I used the sample coding from this siteitself...


LRESULT CHWDetectDlg::OnMyDeviceChange(WPARAM wParam, LPARAM lParam)
{
....
....
if ( DBT_DEVICEARRIVAL == wParam || DBT_DEVICEREMOVECOMPLETE == wParam ) {
PDEV_BROADCAST_HDR pHdr = (PDEV_BROADCAST_HDR)lParam;
switch( pHdr->dbch_devicetype ) {
case DBT_DEVTYP_DEVICEINTERFACE:
PDEV_BROADCAST_DEVICEINTERFACE pDevInf = (PDEV_BROADCAST_DEVICEINTERFACE)pHdr;
UpdateDevice(pDevInf, wParam);
break;
....
....
}


Here in this code wParam should contain either DBT_DEVICEARRIVAL or
DBT_DEVICEREMOVECOMPLETE ...
But it contains DBT_DEVNODES_CHANGED i.e it is detecting there is some device node changes when any device is inserted or removed..
But i want to know whether it is inserted or removed so that it will go into theloop in the above code...
How to proceed...
Waiting for suggestions..



Regards
vijay

QuestionExact Difference between an Abstract Class and Interface in COM. Pin
uday kiran janaswamy22-Feb-07 1:11
uday kiran janaswamy22-Feb-07 1:11 
AnswerRe: Exact Difference between an Abstract Class and Interface in COM. Pin
Cedric Moonen22-Feb-07 1:21
Cedric Moonen22-Feb-07 1:21 
GeneralRe: Exact Difference between an Abstract Class and Interface in COM. Pin
uday kiran janaswamy22-Feb-07 1:34
uday kiran janaswamy22-Feb-07 1:34 
AnswerRe: Exact Difference between an Abstract Class and Interface in COM. Pin
prasad_som22-Feb-07 1:35
prasad_som22-Feb-07 1:35 
GeneralRe: Exact Difference between an Abstract Class and Interface in COM. Pin
Cedric Moonen22-Feb-07 1:49
Cedric Moonen22-Feb-07 1:49 
AnswerRe: Exact Difference between an Abstract Class and Interface in COM. Pin
prasad_som22-Feb-07 1:54
prasad_som22-Feb-07 1:54 
AnswerRe: Exact Difference between an Abstract Class and Interface in COM [modified]. Pin
CPallini22-Feb-07 1:59
mveCPallini22-Feb-07 1:59 
QuestionVc++ pore toolkit Pin
Satheeshkumar_Balakrishnan21-Feb-07 23:51
Satheeshkumar_Balakrishnan21-Feb-07 23:51 
AnswerRe: Vc++ pore toolkit Pin
Cedric Moonen21-Feb-07 23:55
Cedric Moonen21-Feb-07 23:55 
GeneralRe: Vc++ pore toolkit Pin
Reagan Conservative22-Feb-07 3:16
Reagan Conservative22-Feb-07 3:16 
GeneralRe: Vc++ pore toolkit Pin
Cedric Moonen22-Feb-07 3:30
Cedric Moonen22-Feb-07 3:30 
AnswerRe: Vc++ pore toolkit Pin
Hamid_RT22-Feb-07 0:47
Hamid_RT22-Feb-07 0:47 
QuestionDrag and Drop Pin
Try21-Feb-07 22:19
Try21-Feb-07 22:19 
AnswerRe: Drag and Drop Pin
prasad_som22-Feb-07 3:00
prasad_som22-Feb-07 3:00 
AnswerRe: Drag and Drop Pin
Arman S.22-Feb-07 4:51
Arman S.22-Feb-07 4:51 
QuestionRe: Drag and Drop Pin
Mark Salsbery22-Feb-07 5:47
Mark Salsbery22-Feb-07 5:47 
AnswerRe: Drag and Drop Pin
Try22-Feb-07 16:55
Try22-Feb-07 16:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.