Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Yes I did, even though that is the default in VB. I even tried some slight of hand, by changing the prototype slightly and passing the actual pointer via VarPtr(), but it made no difference in the result. What bothers me is that I had to pass ClassGuid to the SetupDiClassGuidsFromNameA function inorder to fill the GUID structure and it succedes every time. I can even use the various slight of hand modifications, I tried with SetupDiGetClassDevs, on SetupDiClassGuidsFromNameA and it still succedes.

Any way I think the guys on the VB forum may be able to help. I've been ask to post the code, and I will be doing that there on monday (since I do not have it here).

Mean while I just wrapped it up in an ATL COM object (ActiveX control), so that I could consentrate on other details for awhile.

F.Y.I. I found a free program on the www called ApiViewer.exe (ApiViewer 2004) that produces declarations for almost every thing, unlike the viewer that comes with VB. Although you need to verify that they are correct yourself, since the prototype for SetupDiGetClassDevs was incorrect (no return value specified).

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
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 
GeneralRe: Const static template member in class Pin
Anonymous29-Jan-05 1:48
Anonymous29-Jan-05 1:48 
GeneralRe: Const static template member in class Pin
Chris Losinger29-Jan-05 4:09
professionalChris Losinger29-Jan-05 4:09 

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.