Problems creating XLL addin files for use on multiple platforms

R

Richardo

I am using Visual Studio 2008 on Vista 64 to create XLL Addins for Office
2007. The original code was developed in Visual Studio 6 and therefore does
not support .NET. Currently the code compiles and produces a viable *.xll
file for Excel on my development machine. As soon as I load it onto another
machine running Office 2007 on windows XP, Excel produces an error message
saying the file is either corrupt or not in the expected format. I have been
tinkering with the project settings for sometime but have come up empty
handed. To the best of knowledge, I have set up the build identical to my
Visual Studio 6 one and insured that I am compiling Win32 compatible. I also
experience this problem when I compile the example files provided in the
latest SDK and attempt to run them on other machines. Moving over to a .Net
framework is not an option as performance is very important. Any ideas as to
what would cause these *.xll files to run fine on my vista 64 machine but not
the windows XP machine running identical versions of office? I have included
the build below.

/O2 /Ob1 /I "C:\Users\****\Documents\Programs\ModelFunctions\src" /I
"C:\Users\***\Documents\Programs\ModelFunctions\lib" /I
"C:\Users\***\Documents\Programs\ModelFunctions\include" /D "WIN32" /D
"NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D
"_AFXDLL" /D "_MBCS" /GF /FD /EHsc /MD /Zp8 /Gy /Yc"stdafx.h"
/Fp".\Release/ModelFunctions.pch" /Fo".\Release/" /Fd".\Release/"
/FR".\Release\\" /W3 /nologo /c /Gd /TP /errorReport:prompt

/OUT:".\Release\ModelFunctions.xll" /INCREMENTAL:NO /NOLOGO
/LIBPATH:"C:\Users\***\Documents\Programs\ModelFunctions\lib" /DLL /MANIFEST
/MANIFESTFILE:".\Release\ModelFunctions.xll.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEF:".\ModelFunctions.def"
/PDB:".\Release/ModelFunctions.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO
/IMPLIB:".\Release/ModelFunctions.lib" /MACHINE:X86 /ERRORREPORT:pROMPT
XLCALL32.lib frmwrk32.lib
 

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