Click here to Skip to main content
       

C / C++ / MFC

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Stuck with function pointers in C and C++memberStefan_Lang29 Jan '13 - 0:02 
GeneralRe: Stuck with function pointers in C and C++memberSimon Langdon29 Jan '13 - 0:38 
GeneralRe: Stuck with function pointers in C and C++memberStefan_Lang29 Jan '13 - 4:31 
GeneralRe: Stuck with function pointers in C and C++mvpCPallini25 Jan '13 - 2:04 
GeneralRe: Stuck with function pointers in C and C++memberFreak3027 Jan '13 - 23:30 
AnswerRe: Stuck with function pointers in C and C++memberStephen Hewitt27 Jan '13 - 4:40 
QuestionUSB Device Path Handle Problemmemberyogeshs24 Jan '13 - 21:21 
Hello Friends
I am trying to connect to USB Printer. For that I used SetupDi calls but not able to get devicePath using Enuminterface.
So, I tried to pass devicePath manually to CreateFile'first parameter o create Handle.
After searching a lot, I found that the H/W id is being used for devicepath and it is here that i found from registery
 
LPCWSTR devicePath = L "\\\\?\\USB\\VID_04A9&PID_10A2&REV_0109#{4d36e979-e325-11ce-bfc1-08002be10318}"
 
In curly brackets represent ClassID for Printer device.[tried USB ClassId too]
But I am getting INVALID_HANDLE always.
So,please let me know the what is right devicepath that i can pass to create file to get its handle.
 
Thanks In Advance.
Regards
Yogesh
AnswerRe: USB Device Path Handle ProblemmemberVaclav_Sal28 Jan '13 - 10:08 
QuestionHow to create a button on the right of the screen in mfc.?membermbatra3124 Jan '13 - 19:53 
AnswerRe: How to create a button on the right of the screen in mfc.?mvpRichard MacCutchan24 Jan '13 - 22:47 
GeneralRe: How to create a button on the right of the screen in mfc.?membermbatra3127 Jan '13 - 19:39 
GeneralRe: How to create a button on the right of the screen in mfc.?mvpRichard MacCutchan27 Jan '13 - 22:36 
GeneralRe: How to create a button on the right of the screen in mfc.?membermbatra3128 Jan '13 - 0:07 
AnswerRe: How to create a button on the right of the screen in mfc.?memberIain Clarke, Warrior Programmer24 Jan '13 - 23:13 
GeneralRe: How to create a button on the right of the screen in mfc.?membermbatra3127 Jan '13 - 20:11 
AnswerRe: How to create a button on the right of the screen in mfc.?memberAlbert Holguin25 Jan '13 - 7:47 
QuestionCall CListCtrl::GetItemCount() in work thread proble.groupyu-jian24 Jan '13 - 17:41 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble.member«_Superman_»24 Jan '13 - 18:03 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble.memberJochen Arndt24 Jan '13 - 21:00 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble.groupyu-jian24 Jan '13 - 21:48 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble.memberJochen Arndt24 Jan '13 - 22:18 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble.groupyu-jian24 Jan '13 - 23:40 
QuestionOpen cv C++memberMember 961996424 Jan '13 - 7:15 
AnswerRe: Open cv C++memberjibesh24 Jan '13 - 7:44 
Questionhow to compress data using zlib?memberIICTECH24 Jan '13 - 1:04 

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


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 20 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid