6
votes
Vote UpVote

Be careful when you import the Microsoft WMIScripting Library

The Road to Delphi – Commonly when we need use the WMI, we import the Microsoft WMIScripting Library from delphi using the Import Component Wizard, but depending on the version of windows that we use the result can be different, although the version showed by the wizard is the same. Check this sample. if you uses Windows 7 and Delphi 2007 to import the Microsoft WMIScripting Library as is shown in this picture. Delphi will generate a unit called WbemScripting_TLB wich is based in the C:\Windows\system32\wbem\wbemdisp.TLB file. Now if you look the ISWbemObjectSet interface the declaration will look like this ...
Favorite? Off-Topic? Rodrigo @ 2010-11-29 03:45

Statistics

Visits: 491
Votes: 6
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

François
GunSmoker
Primoz Gabrijelcic
Sergio
TOndrej
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)