--
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 view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/77d54eea-1c38-4e2d-8f05-8a69a5258a1b%40googlegroups.com.
Thank you Caio,
Unfortunately, I don't think I'm sufficiently proficient to use this...
I mean, I've come a long way: have a package that is protected with a signed XML license file, compiled and obfuscated, multiple libraries cross linked, etc.
But no being a programmer, makes everything 10x harder.
Currently I register the functions (well, the system does it for me), and if it doesn't pass the license confirmation, it unregisters them. To solve the problem I was having, I placed the unregister bit out of the AutoOpen, and into a declared function that is set as IsHidden=True
If I understand correctly, with this ExcelDNA.registration method I have to:
-> avoid that they register by default: ExplicitRegistration="true"
-> (what is ExplicitExports="false" ? never used it)
-> (what is LoadFromBytes="true" ? never used it )
-> I don't have code on the DNA file. All is on a couple libraries compiled elsewhere.
-> do I need to add <Reference Path="ExcelDna.Registration.dll" Pack="true" /> ? (I don't have that line for the ExcelDna.Integration.dll, but I guess that this is referenced by default, and hence no need?)
-> place ExcelDna.Registration.dll in reference of my project where I'm using the AutoOpen function (I'm using visual studio)
I guess that something like "using ExcelDna.registration";
and also, going on the IDE menus, add it to the list of dependencies
but I can't find the ExcelDna.registration.dll file. I guess that I have to compile it, correct? How hard is it? Never done compilation of packages from others...
-> then on the code and inside AutoOpen, and depending on license, either run or not run this thin function:
PerformDefaultRegistration();
(is this the code for C# ?)
Thank you very much,
Pedro