Problem xll with dll

Apr 29, 2013 at 9:03 PM
Hi all,

I tried to create a xll from Visual Studio 2010 named ProjectXll. In this project i have one function

xll_function(double x) as in the demo version

this function call another function

double sum(double a, double b)

this function sum is defined in a dll project called ProjectDll

I have used dllexport in the ProjectDll

ifdef ProjectDll_DLL

define ProjectDll_API __declspec( dllexport )

else

define ProjectDll_API __declspec( dllimport )

endif

When i compile my ProjectXll, i get an xll and an error when opening in Excel

"ProjectXll.xll" i in different format than specified by the file extension

Could you help me, please?
Coordinator
Apr 29, 2013 at 9:35 PM
Chao anh Tuong. The easiest solution is to put the xll and dll in the same directory.

If possible, use a (static) lib instead of a dll. When you compile the xll it will be self contained.
Apr 29, 2013 at 10:08 PM
Hello,

I would like to use dlls because of the size of my project. static libs are used for small (medium) projects. I have just found one solution.
Could you send me an email, please?


Thx
Coordinator
Apr 29, 2013 at 10:11 PM
An e-mail of what to where?