-
March 28th, 2005, 01:20 PM
#1
C++ vs VbScript
I've been battling around trying to implement WMI into my MFC application. I've found that using VBScript to do my WMI calls has worked the best. This is not my perfered method though. Am I really just thinking to hard (or not enough) about this? VBScript has proven to be much easier to work with. How can I code the same thing in MFC?
I'm trying to get Memory information such as speed, bank locations, datawidth. ect.
VBScript WMI Class Snippet that makes this possible
Code:
Set MEMSet = GetObject("winmgmts:").InstancesOf("Win32_PhysicalMemory")
or read
Create a WMI Script
Last edited by jkw2068; March 29th, 2005 at 06:49 PM.
____________
VC++ .NET MFC
-
May 22nd, 2005, 08:33 PM
#2
Re: C++ vs VbScript
Hi !
I've been trying to write some WMI scripts using the MFC. I'm writing some diagnotics app where i want to be able to change Windows XP Product key. I used COM init to interface with Win32_WindowsProductActivation class. How can i run method SetProductkey with parameters??? I went through Microsof docs but it's not clear to me at all. Any hits or sample code???
Thanks a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|