Add-in won't load

D

dani

Hey there,

I have a strange problem:

I have written a COM-Addin. When I try to load the addin on my personal
machine (Windows XP) as well as on any Windows 2000 machine, this works
well.

But when I try to load it on a machine with a fresh installation of
Windows XP, the addin doesn't load (runtime error)... And by the way,
the addin delivered with the SDK doesn't load there either.

Are there some dependencies for Addins to run?

Thanks for any help

Daniel
 
D

dani

I just figured out how to load the COM-add-in. I had to install not just
Visio 2002, but also Office XP.

Can it be that a user who wants to run an add-in in Visio also needs to
purchase the whole Office suite, or is there another way to make it run?

Just with Visio 2002, (in Win 2000 or Win XP), no add-ins are loaded,
there is always a runtime error...
 
M

Mai-lan [MS]

Hi, Dani: You should not have to have the entire Office suite on the target machine in order for a Visio add-in to run. Without seeing any of your code, I'd have the following troubleshooting questions:
1. How did you create your Visio COM add-in? Did you use the Visual Studio wizards provided in the Visio 2002 SDK? That is the best practice for creating COM add-ins for Visio.
2. Are you saying that no COM add-ins for Visio runs on a fresh macine with WindowsXP? What about other Office application add-ins? Are those also broken on the fresh machine or is it just Visio's?
3. What language did you use for your COM add-in?

Thanks,
Mai-lan
 
D

dani

Hi Mai-Lan

1/3. I created my COM-Addin using Delphi and implementing the proper
interface, but

2. I also tried it with the COM-Addin which comes with the Visio 2002
SDK, yes. And this one wouldn't load either. I have not tried more
addins than these two. And I tried this on two different machines with
two different OS (2000 and XP).

As for other office application add-ins, I have not tried that, but
because office is installed then, I assume they would run.

Thanks for your reaction

Daniel
 
M

Michael J. Hunter

Daniel,

If you have Visual Studio, use DEPENDS.EXE to determine what DLLs your addin
requires and whether any of them are missing. I believe you need at least
MSADDNDR.DLL.

You can also try running regsvr32.exe on your addin. If you're missing a
dependent file, the addin usually can't register itself.


Michael J. Hunter
Microsoft
michhu-at-online-dot-microsoft-dot-com

Developing Microsoft Visio Solutions:
http://msdn.microsoft.com/library/en-us/devref/HTML/DVS_Copyright_1270.asp
Developer Resources for Microsoft Visio:
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28000456

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


dani said:
Hi Mai-Lan

1/3. I created my COM-Addin using Delphi and implementing the proper
interface, but

2. I also tried it with the COM-Addin which comes with the Visio 2002
SDK, yes. And this one wouldn't load either. I have not tried more
addins than these two. And I tried this on two different machines with
two different OS (2000 and XP).

As for other office application add-ins, I have not tried that, but
because office is installed then, I assume they would run.

Thanks for your reaction

Daniel
target machine in order for a Visio add-in to run. Without seeing any of
your code, I'd have the following troubleshooting questions:Studio wizards provided in the Visio 2002 SDK? That is the best practice for
creating COM add-ins for Visio.with WindowsXP? What about other Office application add-ins? Are those also
broken on the fresh machine or is it just Visio's?
 

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

Similar Threads


Top