INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Out-of-process not working  (Read 1324 times)

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Out-of-process not working
« on: December 05, 2003, 02:22:13 pm »

Hi Guys,

I can't get out of process working:


   void                     initialize()
   {
      //  Instanciate MC
      IMJAutomationPtr pMC;
      HRESULT hr = pMC.GetActiveObject( L"MediaJukebox Application" );
      if( hr != S_OK )
      {
         hr = pMC.CreateInstance( L"MediaJukebox Application" );
         if( hr != S_OK )
         {
            Tools::fatal( "%s", "Could not instanciate MediaCenter!" );
         }
      }

      //  Save MC
      Tools::initialize( pMC );
   }



My code always drops down into Tools::fatal.

Any ideas?
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Out-of-process not working
« Reply #1 on: December 06, 2003, 03:09:29 am »

Nevermind ... just realised that COM wasn't initialized ... duh!
Logged
Pages: [1]   Go Up