Hi Sebastian,
No, it's not possible.Windows cannot a load a 64-bit dll into a 32-bit process.
-Govert
From: exce...@googlegroups.com [exce...@googlegroups.com] on behalf of Sebastian [zawa...@gmail.com]
Sent: 03 October 2014 10:23 PM
To: exce...@googlegroups.com
Subject: [ExcelDna] Addin compiled to 64 bits platform with Excel 32 bits
Hello All,--
Is it possible to load and register exlcel dna addin that is compiled as x64 bits (for some reasons) to excel 32bits ? I use library ExcelDna.xll 32bits ..
It is important for me, please help
Regards,
Sebastian
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exc...@googlegroups.com.
Hi Sebastian,
It is not the .dna file that decides which .xll file to use, but the other way around – the .xll file is loaded by Excel, and it looks for a matching .dna file to decide what to do. Since the .dna file must have a name matching the .xll file, you’ll need separate .dna files for the 32-bit and 64-bit versions.
With ExcelDnaPack you can put the .dna files (and the MyProgam-AddIn.dll) inside the .xlls, so you only end up with the two .xll files to deal with.
If you want to make a “Starter.exe” like you describe, it could just rename the appropriate version of the .xll file to MyProgram-AddIn.xll, matching the .dna file, and then load it in Excel.
-Govert
To post to this group, send email to exce...@googlegroups.com.