Hi Rahman,
Excel-DNA fully supports the 64-bit version of Excel, but only with the .NET 4 (or later) runtime.
Your add-in library (MyTest.dll) may target "AnyCPU", so you son't need different versions of your own code for 32-bit and 64-bit.
However, the .xll file that loads and registers your code is a native library, so there are two versions - ExcelDna.xll and ExcelDna64.xll.
To indicate that the .NET 4.0 runtime should be loaded, your MyTest-AddIn.dna file might then look like this:
<DnaLibrary RuntimeVersion="v4.0" >
<ExternalLibrary Path="MyTest.dll" />
</DnaLibrary>
The three files then form a complete 64-bit add-in:
* MyTest.dll
* MyTest-AddIn.dna
* MyTest.Add.xll (which is just a renamed copy of ExcelDna64.xll)
If you copy and rename ExcelDna.xll instead, you have a 32-bit add-in.
The .dna file and .xll file can be renamed to anything you like, as long as they have the same root name (the .xll file looks for the .dna file by name).
So you might have something like:
* MyTest.dll
* MyTest-AddIn32.dna
* MyTest.Add32.xll (a renamed copy of ExcelDna.xll)
* MyTest-AddIn64.dna (just a copy of the other .dna file)
* MyTest.Add64.xll (a renamed copy of ExcelDna64.xll)
Once this works fine and you're happy, you can worry about advanced features like packing into a single file.
Please write back is you have more questions.
Regards,
Govert