Menu

bccsdk and WMI

Help
2006-07-30
2013-04-16
  • Oscar Joel Lira Lira

    Hello, excellent project!    
    use bcc55 and wanted to know if with bccsdk I can access to WMI (Windows Management Instrumentation)

    thanks Oscar   

    it excuses my English, but use a translation of google

     
    • Darko Miletic

      Darko Miletic - 2006-07-30

      Well bccsdk contains all of the headers from MS Platform SDK Windows Server 2003 SP1 so WMI stuff is in there.

      There is also wbemuuid.lib.

      The answer to your question would be than yes. I must state, though, that I never tested WMI.

      If you find something that does not work properly just come back here and I'll see what I can do about it.

       
      • Oscar Joel Lira Lira

        I am trying to compile the example that this in the following link, but me an error when link:

        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/creating_a_connection_to_a_wmi_namespace.asp

        Z:\Borland\BCC55\Bin>bcc32 main.cpp /p /iz:\bccsdk\include /lz:\bccsdk\lib
        Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
        main.cpp:
        Warning W8004 main.cpp 172: 'hr' is assigned a value that is never used in funct
        ion main(int,char * *)
        Warning W8057 main.cpp 185: Parameter 'argc' is never used in function main(int,
        char * *)
        Warning W8057 main.cpp 185: Parameter 'argv' is never used in function main(int,
        char * *)
        Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
        Fatal: Unable to open file 'COMSUPP.LIB'

        thanks

        oscar

         
        • Darko Miletic

          Darko Miletic - 2006-07-30

          OK I see the problem here.

          You need to specify the lib file folder where comsupp.lib and wbemuuid.lib are located.

          For example if you installed bccsdk in c:\bccsdk command line to compile sample would look like this:

          bcc32 -Ic:\bccsdk\include -Lc:\bccsdk\lib test.cpp

          I compiled the eexample from MS site and it works just fine

          If you plan to use bccsdk in all projects you can add it to bcc32.cfg and ilink32.cfg. Asuming bccsdk is in c:\bccsdk they would look like this:

          -- bcc32.cfg
          -I"c:\bccsdk\include";"c:\borland\bcc55\include"
          -L"c:\bccsdk\lib";"c:\borland\bcc55\lib\PSDK";"c:\borland\bcc55\lib"

          -- ilink32.cfg
          -L"c:\bccsdk\lib";"c:\borland\bcc55\lib\PSDK";"c:\borland\bcc55\lib"

           
          • Oscar Joel Lira Lira

            I work very well, very many thanks    greetings    Oscar

             
    • Oscar Joel Lira Lira

       

Log in to post a comment.