Release version COM Addin is not loaded


D

David

Hi!
I created COM Addin for Word and PP. I use C++/ ATL 7 + VS 2003. Everything
works fine in debug version. I tested my install on "clean" machine (No VS or
any other DE ) and addin works(debug version) When I build Release version it
fails to load on "claen" machine. However if I had VS installed release works
fine. The problem obviously is in dependencies Addin dll has. Im installing
all possible CRT, ATL, C++ runtimes in my install program and still
somethiong is missing. The symptoms are always the same : Release dll is not
loaded at all (I write to log file in ::OnConnection), the value in registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\MyAddin.Connect
is set to LoadBehavior = 2.
Word changes 3 to 2 as it fails to load dll. Can anybody help me with this
problem
? How can I determine which dependencies I need ? May be some project
settings should be changed in Release? Any other ideas?
Thank you in advance, David.
 
Ad

Advertisements

C

coco

David said:
Hi!
I created COM Addin for Word and PP. I use C++/ ATL 7 + VS 2003. Everything
works fine in debug version. I tested my install on "clean" machine (No VS or
any other DE ) and addin works(debug version) When I build Release version it
fails to load on "claen" machine. However if I had VS installed release works
fine. The problem obviously is in dependencies Addin dll has. Im installing
all possible CRT, ATL, C++ runtimes in my install program and still
somethiong is missing. The symptoms are always the same : Release dll is not
loaded at all (I write to log file in ::OnConnection), the value in registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\MyAddin.Connect
is set to LoadBehavior = 2.
Word changes 3 to 2 as it fails to load dll. Can anybody help me with this
problem
? How can I determine which dependencies I need ? May be some project
settings should be changed in Release? Any other ideas?
Thank you in advance, David.
I'd like to have a tool or a way to easily determine the dependency (and
the dependency path) as well.

Registering and loading COM Addin DLL has always been a pain in the
behind.

I don't know why Microsoft can't make regsvr32 more clueful. It's an
awful tool for development.
 

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