Link to home
Start Free TrialLog in
Avatar of AutumnIglesias
AutumnIglesias

asked on

COM object to return system hardware details?

I need to create a simple VB app that would run at startup on a computer and transmit a list of the computer's hardware details (CPU, RAM, Video card, etc.) to a database.  This is sort of similar to what you can do with SMS, but I want to do it with an in house application for flexibility.  I'm trying to find a COM object that will return information on the system's hardware.
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Avatar of AutumnIglesias
AutumnIglesias

ASKER

looks like that would work prefectly, unfortunately it doesn't include any documentation on how to use it other than a few properties.  i couldn't figure out how to create the object.
this is ocx so that you just add from the component and paste to your form
also the zip includes the hwinfo.chm, take a look on th control property.


For example if the control you paste to form named crtl

the to display biosvendor, you juse do

debug.print crtl.BIOSVendor
Of course, you need to registry the ocx by using

regsvr32 hwinfo.ocx
Ok, the part I don't understand is where does crtl come from?  I mean, how do I tell Visual Basic I want to use this control.  Usually I do something like:

dim foo as object
set foo=CreateObject("foo.bar")

That's what I'm looking for.  Sorry if I was unclear.  Thank you...
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: EDDYKT {http:#8871512}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Bingie
EE Cleanup Volunteer