-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call TlbExp to make a type library that is embedded in the .xll #472
Conversation
|
How can I test for it? For development, I tested with NET6DnaComServer project and NET6Book.xlsm. The book includes a function call and two macros:
The function and both macros worked. |
Yes I think that code can only work if the I also think that |
It is not only dscom. In .NET 6 build, I got And there is CA1408: Do not use AutoDual ClassInterfaceType |
In NET6DnaComServer/AddIn.cs:
|
I'm actually super confused. See my answer here: https://groups.google.com/g/exceldna/c/onRDZLJwoBY Anyway, it's worth taking note of these quirks, especially about the CTP controls. I forgot about the problem and fix I found in February, just that I had tried it under .NET 6 and did get it to work. |
I think your example:
work because of the interface, where the default is then to generate an IDispatch. |
For .NET 6, dscom need to be installed on the development machine:
https://github.com/dspace-group/dscom
And for .NET 6, a COM interface should be explicitly declared, not using ClassInterfaceType.AutoDual.