What if POwerPoint gets uninstalled AFTER installing a DLL that refers to PowerPoint?

H

Howard Kaikow

1. I have a VB 6 setup program that checks whether PowerPoint is installed .

If PowerPoint is installed. certain Word macros are included in the Word
template installed, otherwise the macros are omitted. However, the installed
DLL
still has references to PowerPoint, tho the code need not be used.

2. All Word macros call code with:

Set clsX = New MyClass

With clsX
.SetClass Application, ActiveDocument, ThisDocument
.ActualMacroCodeHiddenInDLL
End With

3. The DLL contains

Private appPPT as PowerPoint.Application

The code in the DLL that uses appPPT might not be invoked by Word.

appPPT has scope of the class just to avoid having to recreate the appPPT
object each
time a procedure that needs PowerPoint is called.

appPPT is not set up in the class initialization code, only in the
procedures that use PowerPoint. And is set up only once in the class.

4. Assume that PowerPoint was installed at the time of installation of the
DLL.

5. What happens if the user uninstalls PowerPoint after the DLL is
installed?

Will .SetClass fail to initialize correctly because PowerPoint is not
installed, so the Private appPPT staement cannot be resolved?

There are no references to appPPT in SetClass.

I have no systems without PowerPoint so cannot verify,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top