CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: C++ vs VbScript

  1. #1
    Join Date
    Aug 2003
    Posts
    84

    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

  2. #2
    Join Date
    May 2005
    Posts
    4

    Unhappy 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
  •  





Click Here to Expand Forum to Full Width

Featured