Re: GetActiveObject Fails.

Tech-Archive recommends: Speed Up your PC by fixing your registry



Is Powerpoint.Application in the ROT? Note that it probably isn't if you
just start it up - you probably have to send some sort of message to it
first (at least that's how it works with Excel).

Volker

"JoDeGr8" <JoDeGr8@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6151419B-9D67-4E7A-A68A-1AB6707966BD@xxxxxxxxxxxxxxxx
> I tried to get arunning instance of a powerpoint using GetActiveObject
> CLSIDFromProgID(L"Powerpoint.Application",&clsid);
> hr=GetActiveObject(clsid,NULL,&pUnk);
>
> But this call(to GetActiveObject())crashes the program.
>
> I am using this code from a mfc dll.This mfc dll will be loaded by
another
> mfc dll at run-time(using Loadlibrary()).
> First DLL->SecondDLL->GetActiveObject().
>
> What should be the possible problem.
>
> --
> I don hav a signature..Unfortunately!


.



Relevant Pages

  • VC7.1: cl.exe error?
    ... I am developing a MFC dll, which will be invoked by a C# winform app. ... Alex ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Partially Visible TSP?
    ... I am not using any .NET it's unmanaged C++ in an MFC DLL. ... mentioned the framework in case someone suggested I install it! ... Prev by Date: ...
    (microsoft.public.win32.programmer.tapi)
  • C++ MFC DLL referencing to C#
    ... I made an MFC DLL in C++. ... I want to reference it in C#. ... browser. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)