Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: which one is parent? Pin
Maximilien13-Apr-07 9:56
Maximilien13-Apr-07 9:56 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:10
mveCPallini13-Apr-07 10:10 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:06
mveCPallini13-Apr-07 10:06 
AnswerRe: which one is parent? Pin
bob1697213-Apr-07 10:10
bob1697213-Apr-07 10:10 
AnswerRe: which one is parent? Pin
JudyL_MD13-Apr-07 10:14
JudyL_MD13-Apr-07 10:14 
GeneralRe: which one is parent? Pin
iayd13-Apr-07 11:15
iayd13-Apr-07 11:15 
Questionhard disk serial number in vista Pin
viral_umang@hotmail.com13-Apr-07 8:59
viral_umang@hotmail.com13-Apr-07 8:59 
AnswerRe: hard disk serial number in vista Pin
bob1697213-Apr-07 9:58
bob1697213-Apr-07 9:58 
viral_umang@hotmail.com wrote:
i don't want to use wmi


Unfortunately, WMI is the easiest way to go when it comes to getting hardware information. There is a WMI redistributable for Win95, Win98, and WinNT that you can package up in an msi along with your app. The read-only side of WMI works great when logged on as a regular user (non-admin). I program with it in Visual C++ 6.0 (Platform SDK is required on your Visual C++ 6.0 machine) and it works fine on Vista.

Now, I agree with you on the "no dotNet stuff" and WMI is quite complex since it is DCOM based but it hasn't weighed me down too much since the queries are always on the same box. DCOM seems heavy only when you try to do stuff remotely. There are just too many variables involved with trying to write your own code for every possible piece of hardware out there that may be underneath any Win95-Vista installation for even the most conservative programmer.

If you've never programmed in COM or DCOM, then I might understand any hesitation or reluctance since the initial learning curve is substantial in Visual C++ but if your a veteran COM programmer, this is one of those rare instances where I'd have to ask "Why not give it a try?". Once you write the code for one property, you can reuse that code for most others.
QuestionRe: hard disk serial number in vista Pin
viral_umang@hotmail.com13-Apr-07 10:16
viral_umang@hotmail.com13-Apr-07 10:16 
AnswerRe: hard disk serial number in vista Pin
bob1697213-Apr-07 10:45
bob1697213-Apr-07 10:45 
QuestionWhat happens if client CSocket does not process/clear returned package? Pin
zipliu13-Apr-07 5:04
zipliu13-Apr-07 5:04 
AnswerRe: What happens if client CSocket does not process/clear returned package? Pin
Mark Salsbery13-Apr-07 7:28
Mark Salsbery13-Apr-07 7:28 
GeneralRe: What happens if client CSocket does not process/clear returned package? Pin
zipliu13-Apr-07 9:03
zipliu13-Apr-07 9:03 
GeneralRe: What happens if client CSocket does not process/clear returned package? Pin
Mark Salsbery13-Apr-07 11:15
Mark Salsbery13-Apr-07 11:15 
GeneralRe: What happens if client CSocket does not process/clear returned package? Pin
zipliu13-Apr-07 9:04
zipliu13-Apr-07 9:04 
Questiongroup policy- pls help me Pin
deeps_cute13-Apr-07 5:02
deeps_cute13-Apr-07 5:02 
QuestionApply header programmatically Pin
Al_Pennyworth13-Apr-07 4:23
Al_Pennyworth13-Apr-07 4:23 
AnswerRe: Apply header programmatically Pin
Roger Stoltz13-Apr-07 4:44
Roger Stoltz13-Apr-07 4:44 
AnswerRe: Apply header programmatically Pin
Cedric Moonen13-Apr-07 4:50
Cedric Moonen13-Apr-07 4:50 
AnswerRe: Apply header programmatically Pin
krmed13-Apr-07 5:33
krmed13-Apr-07 5:33 
AnswerRe: Apply header programmatically Pin
Al_Pennyworth13-Apr-07 8:07
Al_Pennyworth13-Apr-07 8:07 
AnswerRe: Apply header programmatically Pin
Michael Dunn13-Apr-07 8:43
sitebuilderMichael Dunn13-Apr-07 8:43 
QuestionClosing a dialog box Pin
llp00na13-Apr-07 4:20
llp00na13-Apr-07 4:20 
AnswerRe: Closing a dialog box Pin
bob1697213-Apr-07 5:02
bob1697213-Apr-07 5:02 
GeneralRe: Closing a dialog box Pin
llp00na13-Apr-07 5:14
llp00na13-Apr-07 5:14 

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.