PC Review


Reply
Thread Tools Rate Thread

Can't attach with GetActiveObject

 
 
Bert
Guest
Posts: n/a
 
      23rd Oct 2011
I have a third-party application which exposes a COM interface that I'm
trying to talk to via a C# program.

I add a reference to it and can instantiate an instance of its App
class, which starts an instance of the program which I can manipulate.

However, attempting to attach to an already running copy of the program
via System.Runtime.InteropServices.Marshal.GetActiveObject("ProgID")
always fails with MK_E_UNAVAILABLE.

The program's ProgID and CLSID are in HKCR, but it does NOT show up in the
"running object table."

Am I missing something, or did the program's author forget to do
something?

--
(E-Mail Removed) St. Paul, MN
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:36 PM.