Jump to content

GetActiveObject in C++ schlägt fehl


Recommended Posts

Woran kann es liegen, dass folgender Aufruf von GetActiveObject fehlschlägt?

 

  CLSID clsid;
  CLSIDFromProgID( L"DVBViewerServer.DVBViewer", & clsid );

  IUnknown * pIUnknown;

  HRESULT hr = GetActiveObject( clsid, NULL, & pIUnknown );

 

Der DVBViewer läuft und die Funktion CLSIDFromProgID ist auch erfolgreich.

Link to comment

Starte mal den DVBViewer als Administrator.

 

Danke für den Hinweis, war's aber nicht. War eher das eigene Unvermögen. Hatte vergessen, beim VC-Projekt "COM Support" anzuhaken. Kleine Schalter, große Wirkung.

 

Edit: und glech noch einen zweiten Bock geschossen: Den DVBViewer in einem separaten Thread per COM anzusprechen ist auch keine gute Idee.

Edited by dbraner
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...