

If you’re using the ExcelDna.Registration library, and registering the functions yourself, then you should put
<ExcelAddInExplicitRegistration>true</ExcelAddInExplicitRegistration>
as a property in the project file, or if you have a .dna file in your project,
<ExternalLibrary Path="xxxx.dll" ExplicitRegistration="true" … />
in the .dna file.
This stops the function registration that Excel-DNA normally does, so that your explicit registrations are not duplicates.
-Govert
From: exce...@googlegroups.com <exce...@googlegroups.com> On Behalf Of Andrew DeBear
Sent: Monday, July 24, 2023 8:38 PM
To: Excel-DNA <exce...@googlegroups.com>
Subject: [ExcelDna] Re: DnaCompilation [Error]...?
OK. I looked at my *.dna file. And there was a c# comment line ("//"), instead of an XML comment line ("<!-- -->"). So that fixed the compilation error messages, BUT...
I still get the diagnostic Display box with a bunch of DOUBLED "repeated function" errors...like the add-in is being loaded twice.
Any input appreciated...?
Registration [Error] Repeated function name: 'C_MMatch' - previous registration will be overwritten.
Registration [Error] Repeated function name: ' C_MMatch ' - previous registration will be overwritten.

--
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/c0bebb06-5cd6-4020-a4ea-22cabc0fc893n%40googlegroups.com.
Can you show the whole .dna file and the whole .vbproj file?
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/256c6443-c145-466d-8e56-83fae3a19b8dn%40googlegroups.com.