[C++][COM] Add-in suddenly stops working in PowerPoint

R

Rolf

Hello,

I have written a COM add-in for Office 2003 in Visual C++. The add-in
doesn't do much special, but it does use MFC to display a dialog if the
user clicks a button on a new toolbar.
I had been running the debug version of the add-in from Visual Studio
itself and it worked fine. Then I tried to run a release version of the
same add-in. Registering the dll with regsvr32.exe works well, but when
I start PowerPoint, it doesn't show the new toolbar. The add-in shows up
in the COM add-in window, but isn't started due to "A runtime error
occurred during the loading of the COM add-in".
After this, I have unregistered the release COM dll and have registered
the debug version again. Now when I start PowerPoint from Visual Studio,
PowerPoint tells me that the debug add-in can be started because "A
runtime error occurred during the loading of the COM add-in". This is
exactly the same dll that did work before. Furthermore, when I try to
debug the add-in, Visual Studio tells me that all breakpoints are
skipped, no matter where they are put.

Has anyone else had this problem or does anyone know a solution? And how
can see what the runtime error is that PowerPoint is complaining about?

Thanks in advance,
Rolf
 
X

XL-Dennis

Rolf,

I'm not a PPT expert but I believe it's not related to the specific software
in use.

At the following URL there are some general troubleshooting guidelines where
the 'blacklisted' may be applied with Your issue:
http://www.excelkb.com/article.aspx?id=10206

Shimming the COM add-ins may also be of interest:
http://www.excelkb.com/article.aspx?id=10202

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/
 

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