Jump to content

Search the Community

Showing results for tags 'getactiveobject'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Deutsch
    • Ankündigungen & Neuigkeiten
    • Einsteigerfragen DVBViewer Pro/GE
    • Allgemeines DVBViewer Pro/GE
    • Vorschläge & Ideen
    • Fehlermeldungen DVBViewer Pro/GE
    • Plugins und AddOns
    • DVB Hardware (Digital TV Karten)
    • DVBViewer Recording Service 1.x
    • DVBViewer Media Server
    • Sat>IP Viewer & Co (Android,iOS,Mac)
    • Verschiedenes
    • DVBViewer Video Editor
  • English
    • News & Announcements
    • Newbies DVBViewer Pro/GE
    • General DVBViewer Pro/GE
    • Suggestions & Ideas
    • Bug Reports DVBViewer Pro/GE
    • Plugins and AddOns
    • DVB Hardware (Digital TV cards)
    • DVBViewer Recording Service 1.x
    • DVBViewer Media Server
    • Sat>IP Viewer & Co (Android,iOS,Mac)
    • Off-Topic
    • DVBViewer Video Editor
  • Miscellaneous
    • Scripting Lounge / API (de/en)
    • Area HTPC
    • HDTV / UHDTV (de/en)
    • DVB - The technique behind
    • Conversion & Encoding
    • OEM Edition - User Helping Users (de/en)
    • Forum / Wiki / Website (de/en)
  • Survey ● Umfragen
    • DVBViewer Pro Cleanup (en/de)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Hi, I have a demo version of DVBViewer Pro v 6.0.4. My C++ code for a COM interface is: #include "stdafx.h" #include <windows.h> #include <objbase.h> #include <comutil.h> #include <stdio.h> #include <time.h> #include <locale.h> #include "initguid.h" int _tmain(int argc, _TCHAR* argv[]) { HRESULT hr; VARIANT varRetVal; DISPID dispID; hr = CoInitialize( NULL ); if ( FAILED( hr ) ) { MessageBox( NULL, TEXT("CoInitialize"), TEXT("ERROR"), MB_OK ); return 2; } // Translate server ProgID into a CLSID. ClsidFromProgID // gets this information from the registry. // CLSID clsid; CLSIDFromProgID( L"DVBViewerServer.DVBViewer", & clsid ); IUnknown * pIUnknown; hr = GetActiveObject( clsid, NULL, & pIUnknown ); if ( FAILED( hr ) ) { MessageBox( NULL, TEXT("GetActiveObject"), TEXT("ERROR"), MB_OK ); return 2; } return 0; } I am getting the error message box: MessageBox( TEXT("GetActiveObject"), TEXT("ERROR"), MB_OK ); Can't figure out what's the problem :-( Anyone? Thanks in advance, Adi
×
×
  • Create New...