I don't know if you know excel-dna project, it's a project that help to integrate .net assembly and language in excel addins.
My problem is that I want to unpack a dll from an xll file (excel-dna is able to pack resources inside xll).
I donwloaded the excel-dna sources and already write this base on the source code :
string xlllib = @"C:\pathtomyxllfile\myaddin.xll";
string xlloutput = @"C:\pathtomyxllfile\myaddin.dll";
var hModule = ResourceHelper.LoadLibrary(xlllib);
var content = ResourceHelper.LoadResourceBytes(hModule, "ASSEMBLY_LZMA", "MYASSEMBLYNAME");
using (BinaryWriter binWriter = new BinaryWriter(File.Open(xlloutput, FileMode.Create)))
{
binWriter.Write(content);
}
but it doesn't work. Anyone have an idea to unpack a dll from xll ?
thanks in advance,