xll 64-bit

Jul 3, 2012 at 6:57 PM

On the documentation page, it says,"Any version of 32-bit Windows from 2000 through Windows 7".  Will this work with a 64-bit OS and the 64-bit version of Excel?

Coordinator
Jul 3, 2012 at 7:03 PM
Edited Jul 3, 2012 at 7:55 PM

It seems to, but I don't know how heavily it has been used in this setup.

Jul 3, 2012 at 8:13 PM

I went ahead and tried it, but it certainly didn't work for me right out of the box.  I'm running 64-bit Windows 7 and Excel 2010 64-bit.  I tried a few things, but could not get it to work.

Coordinator
Jul 3, 2012 at 9:43 PM

Need a little more info please. What exactly are you doing? Are you having trouble compiling the add-in or running it in Excel.

Nov 16, 2012 at 10:09 AM

I have same problem!

 In my system (w7 64bit, VS 2010), by default, project compile for 32bit and it work fine in 32bit system (even compiling in 64 bit system).

I have tried change target platform  to 64bit in Configuration manager before build but it failed, error message shows up when building are:

1>ClCompile:

1> function.cpp

1> macro.cpp

1> Generating Code...

1>xll.lib(dllmain.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

1>

1>Build FAILED.

 How can I do?

 

 

Coordinator
Nov 16, 2012 at 12:44 PM

Chao anh Dang. I have gotten 64-bit builds working, but they are not ready for prime-time yet.
The error you are seeing means you are linking against the 32-bit xll library.
You will need to check out the source using subversion (or download the zip file) and compile that as 64-bit also.
Do not add the 64-bit library as a reference in Visual Studio. That is a known defect that does not seem to be a priority for the compiler team to fix.
The work-around is to link directly to the library.

Nov 17, 2012 at 5:04 AM

how do I fix it? because I just create new xll project and have no any new code!

Coordinator
Nov 17, 2012 at 1:30 PM

Toi khong hieu anh Dang. Were you able to build 64-bit xll project? Next step is build the 64-bit test project, but you have to do what I said in the previous message.

Nov 19, 2012 at 3:46 AM

All think I do is:

1. Run Setup.msi

2. Run Project.msi

3. Run VS 2010 and:

  - In start page select  NewProject

  - Select Visual C++ and select  XLL AddIn Project

4. In Configuration Manager, I change target platform from Win32 to x64

5. Build solution and then error show:

1>Build started 19-11-12 10:45:19 AM.

1>InitializeBuildStatus:

1> Touching "x64\Debug\XllProject1.unsuccessfulbuild".

1>ClCompile:

1> function.cpp

1> macro.cpp

1> Generating Code...

1>xll.lib(dllmain.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

1>

1>Build FAILED.

1>

1>Time Elapsed 00:00:01.49

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

How can I do?

 

 

Coordinator
Nov 19, 2012 at 1:28 PM

Like I said above, you need to check out the source for the xll library and compile that as 64-bit. You cannot link against the library in setup.msi because that one is 32-bit.

May 19 at 11:12 AM
Edited May 19 at 11:12 AM
Great application. There is no problem to compile and use under win32 platform. But when I tried to use x64 to compile. I followed your advice by moving from reference to link to set up xll.lib. When compiling text project, It tells me something like
"Error LNK2001 unresolved external symbol __DllMain@12 test \test\huey.obj "
My system is windows 7, and visual studio 2015.

I am struggling to find a solution.