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
Set MEMSet = GetObject("winmgmts:").InstancesOf("Win32_PhysicalMemory")

or read

Create a WMI Script (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/example__getting_wmi_data_from_the_local_computer.asp)
[761 byte] By [jkw2068] at [2007-11-19 7:05:32]
# 1 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
macakd at 2007-11-11 0:28:40 >