krzychu019 napisał(a):Ten pliczek musi z czymś dodatkowym się instalować
Na pewno nie gdyż w pliku pomocy do środowisk RAD Studio 2006, 2010 i XE2 (tych ostatnio używałem) jest opis użycia WMI i info jakie biblioteki należy dołączyć:
IWbemLocator
Use the IWbemLocator interface to obtain the initial namespace pointer to the IWbemServices interface for WMI on a specific host computer. You can access Windows Management itself using the IWbemServices pointer, which is returned by the IWbemLocator::ConnectServer method.
A client or provider that requires Windows Management services first obtains a pointer to the locator using CoCreateInstance or CoCreateInstanceEx, as specified in the COM documentation in the Microsoft Windows Software Development Kit (SDK). The IWbemLocator object is always an in-process COM server. The interface pointer to the desired namespace on the desired target computer is then obtained through the IWbemLocator::ConnectServer method, which is the only method on this interface.
Methods in Vtable Order
The IWbemLocator interface inherits the methods of the IUnknown interface.
In addition, IWbemLocator defines the following method.
Method Description
ConnectServer Connects to Windows Management on the specified computer.
Requirements
Client Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, Windows 98, or Windows 95.
Server Requires Windows Server "Longhorn", Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
Header Declared in Wbemcli.h; include Wbemidl.h.
Library Use Wbemuuid.lib.
DLL Requires Wbemcore.dll. Requires Wbemupgd.dll.
To raczej coś nie tak z Twoim środowiskiem.
krzychu019 napisał(a):Wszystkie wersje mam pełne
Co to znaczy pełne? Jeżeli nie używasz wersji
Enterprise lub
Architect (od 2009) to masz wersje okrojone.
W BCB 6 Personal na pewno tej biblioteki nie ma, wiem gdyż sam kiedyś używał tego środowiska, ale poza wersją Personal innych nie używałem. Jeżeli jednak używasz BCB 6 w wersji Personal to nie których bibliotek nie będzie. W przypadku RAD Studio 2007 dostępne są 3 wersje Professional, Enterprise i Architect i tylko wersja Architect jest pełna, pozostałe są częściowo okrojone.