Hi Andrew,
Microsoft’s documentation for xlAutoOpen (the .xll entry point) states that:
“Your implementation of this function must return 1 (int).”
So it does not seem like an appropriate mechanism for indicating some error during loading.
There might be some other error cases that cause RegisterXLL to return something interesting, of course.
In Excel-DNA the plumbing around AutoOpen is not likely to change anyway, so I can’t see a good way to thread some result code back with this mechanism.
Your add-in specific mechanism with a simple XLL function (which you can make hidden so it doesn’t show up the functions dropdown) should be fine. It can even return a string with some diagnostic information if there is an error.
-Govert
--
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 exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to exce...@googlegroups.com.