View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Richardo Richardo is offline
external usenet poster
 
Posts: 2
Default Problems created XLL addins for use on multiple operating systems

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\s rc" /I
"C:\Users\***\Documents\Programs\ModelFunctions\li b" /I
"C:\Users\***\Documents\Programs\ModelFunctions\in clude" /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\ModelFunc tions\lib" /DLL /MANIFEST
/MANIFESTFILE:".\Release\ModelFunctions.xll.interme diate.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