Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Only For Delphi Gurus - Problem with COM instance (SWbemLocator)

Status
Not open for further replies.

osman1202

Programmer
Jun 8, 2003
3
CH
Hi everybody !! (sorry for my english)

I've got a sirious problem interfacing my COM to another(SWbemLocator).

1. I tried to access WMI Provider with the non-visual component SWbemLocator, this component work fine if I put it on form which is auto-created by delphi. I can connect the remote server and all works fine...

2. but when I created this object programmaticly in my COM server, I cannot connect the server. I suppose that the problem is the Interface(s)... why should I suppose that ? Because I've made some tests and I saw that :

-if I launch my COM method wich connect the server trough this component, I get an error : Access denied
-after that I execute the Win32 forms based application which do same as my COM, the COM get access without any problems...

If anyone knows how to work with TOleServer,TSWbemLocator,interfaces please help me. Or have some idea thanks to reply this message...


Osman from Switzerland (very nice country :))
 
No, I don't call it, because I didn't know that. And now I have also a question where can I find this unit. I use Delphi 6 and I didn't saw this unit in default Delphi package.

where can I fount it ?

thanks for the reply :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top