Click here to Skip to main content
16,016,962 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static methods? Pin
Anonymous11-Aug-05 4:24
Anonymous11-Aug-05 4:24 
GeneralRe: static methods? Pin
sunit511-Aug-05 5:34
sunit511-Aug-05 5:34 
AnswerRe: static methods? Pin
sunit511-Aug-05 5:39
sunit511-Aug-05 5:39 
QuestionEnum "real" users Pin
peterchen11-Aug-05 1:37
peterchen11-Aug-05 1:37 
Question(Printer Driver)How to Hide Default Document Property sheet ? Pin
Anonymous11-Aug-05 0:51
Anonymous11-Aug-05 0:51 
QuestionHow can i get the length of a line in a multiline edit box? Pin
tl0825411-Aug-05 0:15
tl0825411-Aug-05 0:15 
AnswerRe: How can i get the length of a line in a multiline edit box? Pin
Achim Klein11-Aug-05 1:38
Achim Klein11-Aug-05 1:38 
GeneralWindows Device Manager Pin
nripun11-Aug-05 0:13
nripun11-Aug-05 0:13 
I am using VC++ 6.0. I want to create an application with one of the functionality of Device Manager. When we connect a usb cam or a scanner its friendly name gets added to Imaging Devices in Device Manager. I would appreciate help in creating an application similar to this but the appplication should make out the difference between the camera abd the scanner.
This is what i have done..
<br />
CString name_class="image";//name of the class whose GUID we need<br />
GUID class_GuidList;<br />
SetupDiClassGuidsFromName(name_class,&class_GuidList,1,&required_size);<br />
dev_info=SetupDiGetClassDevs(&class_GuidList,NULL,handle_win,DIGCF_PRESENT);<br />
ret=SetupDiEnumDeviceInfo(dev_info,(DWORD)i,&DeviceInfoData);<br />
SetupDiGetDeviceRegistryProperty(dev_info,&DeviceInfoData,SPDRP_DEVICEDESC,<br />
			&prop_datatype,prop_buffer,100,&req_bufsize);<br />


But the above code lists the scanner also.
Is there any way to make out the differnce between the scanner and the camera?



Regards,
Nripun
GeneralRe: Windows Device Manager Pin
Alexander M.,11-Aug-05 1:06
Alexander M.,11-Aug-05 1:06 
GeneralRe: Windows Device Manager Pin
nripun11-Aug-05 3:11
nripun11-Aug-05 3:11 
GeneralEdit Control highlight Pin
zhaopi10-Aug-05 22:30
zhaopi10-Aug-05 22:30 
GeneralRe: Edit Control highlight Pin
Phil J Pearson10-Aug-05 23:24
Phil J Pearson10-Aug-05 23:24 
GeneralRe: Edit Control highlight Pin
Eytukan10-Aug-05 23:29
Eytukan10-Aug-05 23:29 
GeneralRe: Edit Control highlight Pin
zhaopi11-Aug-05 17:02
zhaopi11-Aug-05 17:02 
GeneralSocket Pin
sunit510-Aug-05 22:19
sunit510-Aug-05 22:19 
GeneralRe: Socket Pin
vikas amin10-Aug-05 23:28
vikas amin10-Aug-05 23:28 
GeneralRe: Socket Pin
William.Wang11-Aug-05 0:38
William.Wang11-Aug-05 0:38 
GeneralRe: Socket Pin
Trollslayer11-Aug-05 1:16
mentorTrollslayer11-Aug-05 1:16 
GeneralRe: Socket Pin
sunit511-Aug-05 1:46
sunit511-Aug-05 1:46 
GeneralRe: Socket Pin
ThatsAlok11-Aug-05 3:59
ThatsAlok11-Aug-05 3:59 
GeneralEncoding Pin
Ali Tavakol10-Aug-05 22:13
Ali Tavakol10-Aug-05 22:13 
Generaloutlook account Pin
gecool10-Aug-05 21:16
gecool10-Aug-05 21:16 
GeneralRe: outlook account Pin
Jose Lamas Rios10-Aug-05 21:32
Jose Lamas Rios10-Aug-05 21:32 
GeneralRe: outlook account Pin
ThatsAlok10-Aug-05 22:04
ThatsAlok10-Aug-05 22:04 
GeneralRe: outlook account Pin
gecool10-Aug-05 22:55
gecool10-Aug-05 22: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.