Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: onkeydown Pin
Shog928-Jan-05 9:17
sitebuilderShog928-Jan-05 9:17 
GeneralRe: onkeydown Pin
Iain Clarke, Warrior Programmer28-Jan-05 12:33
Iain Clarke, Warrior Programmer28-Jan-05 12:33 
Questionjava in c code? Pin
porac6928-Jan-05 7:26
porac6928-Jan-05 7:26 
AnswerRe: java in c code? Pin
includeh1028-Jan-05 7:37
includeh1028-Jan-05 7:37 
AnswerRe: java in c code? Pin
David Crow28-Jan-05 7:44
David Crow28-Jan-05 7:44 
GeneralRe: java in c code? Pin
porac6928-Jan-05 7:51
porac6928-Jan-05 7:51 
GeneralRe: java in c code? Pin
David Crow28-Jan-05 8:30
David Crow28-Jan-05 8:30 
GeneralSetupDiGetClassDevs fails with -1 Pin
John R. Shaw28-Jan-05 7:25
John R. Shaw28-Jan-05 7:25 
// C++ succeeds every time
hDevice = SetupDiGetClassDevs(pGuid,NULL,NULL,DIGCF_PRESENT);

' VB fials every time with hDevice = -1 = INVALID_HANDLE_VALUE
'and GetLastError() = 0 = ERROR_SUCCESS
hDevice = SetupDiGetClassDevs(ClassGuid, 0&, 0&, DIGCF_PRESENT)


Both pGuid and ClassGuid contain the exact same GUID data.

Does anyone have any ideas why this 'C' function would fail when called from VB?

Ya! Ya! This is basicaly a VB question, but I am a C/C++ programmer so I am asking here first.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: SetupDiGetClassDevs fails with -1 Pin
Wander Costa28-Jan-05 10:26
Wander Costa28-Jan-05 10:26 
GeneralRe: SetupDiGetClassDevs fails with -1 Pin
John R. Shaw29-Jan-05 10:27
John R. Shaw29-Jan-05 10:27 
Generaladd a pop-up menu to shell menu Pin
includeh1028-Jan-05 7:07
includeh1028-Jan-05 7:07 
GeneralRe: add a pop-up menu to shell menu Pin
Michael Dunn28-Jan-05 12:16
sitebuilderMichael Dunn28-Jan-05 12:16 
GeneralRe: add a pop-up menu to shell menu Pin
includeh1028-Jan-05 18:59
includeh1028-Jan-05 18:59 
GeneralRe: add a pop-up menu to shell menu Pin
Iain Clarke, Warrior Programmer28-Jan-05 12:38
Iain Clarke, Warrior Programmer28-Jan-05 12:38 
GeneralRe: add a pop-up menu to shell menu Pin
includeh1028-Jan-05 19:03
includeh1028-Jan-05 19:03 
QuestionCreate AutoRun.Exe Without .NET FrameWork? Pin
Khang Nguyen28-Jan-05 5:20
Khang Nguyen28-Jan-05 5:20 
AnswerRe: Create AutoRun.Exe Without .NET FrameWork? Pin
David Crow28-Jan-05 5:23
David Crow28-Jan-05 5:23 
GeneralRe: Create AutoRun.Exe Without .NET FrameWork? Pin
Khang Nguyen28-Jan-05 6:02
Khang Nguyen28-Jan-05 6:02 
GeneralRe: Create AutoRun.Exe Without .NET FrameWork? Pin
David Crow28-Jan-05 7:39
David Crow28-Jan-05 7:39 
Questionhow to call printer under fullscreen Pin
stanleyhxywork28-Jan-05 4:51
stanleyhxywork28-Jan-05 4:51 
AnswerRe: how to call printer under fullscreen Pin
David Crow28-Jan-05 5:24
David Crow28-Jan-05 5:24 
GeneralRe: how to call printer under fullscreen Pin
Anonymous30-Jan-05 0:04
Anonymous30-Jan-05 0:04 
GeneralAudio Encoder/Decoder Pin
aRtsZ28-Jan-05 4:23
aRtsZ28-Jan-05 4:23 
GeneralConst static template member in class Pin
Anonymous28-Jan-05 3:34
Anonymous28-Jan-05 3:34 
GeneralRe: Const static template member in class Pin
Chris Losinger28-Jan-05 4:54
professionalChris Losinger28-Jan-05 4:54 

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.