Closed DiskCrasher closed 2 years ago
@DiskCrasher, Thanks for the report!
Please follow the instructions from https://github.com/3F/DllExport/issues/193#issuecomment-899030110
@DiskCrasher, Thanks for the report!
Please follow the instructions from #193 (comment)
In other words, .NET 5/6 aren't yet supported.
In other words, .NET 5/6 aren't yet supported.
Only through targeting via supported .NET Core TFMs at this day (most recent version is 1.7.4)
Mate, sry if im stupid, but im kinda new to .NET and especially to their massive architectual changes of the entire environment^^
Would you mind, stating in short sentence: How you mean by targeting via .NET core?
How you mean by targeting via .NET core?
@Shpendicus,
targeting via supported .NET Core TFMs
For example, .NET Core 2.2, or .NET Standard 2
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Also note, lower version can be evaluated in higher Runtime. This is for the case when the module as an intermediary.
@3F the thing is, i watched your 3 min tutorial, on how to use your DLLExport-attribute, and i did it step by step, it even builds! BUT: the moment you passed, in the video, the newly created .dll into the "CFF" viewer, u could see the address of the static function you defined in your class, but when I did it, the address window in the "Exported Object" folder, in the CFF-viewer, was empty :(
the thing is, I use features of .NET 6 and this wont work then, right?
Btw, I have donated you a monthly-fee for your work as a thanks to such big work, since every time I wanted something like COM or hard low level it's a pain in the ass, if you are not yet that good of a programmer, so yea pls keep up the dev of "DllExport" and also "Corini" to be usable fully with .NET 6 , in that sense, that you can export a .NET object/function even when u make use of all what is in .NET 6 and C# 10 :)
the address window in the "Exported Object" folder, in the CFF-viewer, was empty :(
It shouldn't be empty. Make sure you're looking at correct assembly (x64 or x86 folder if you're using both arch)
the thing is, I use features of .NET 6 and this wont work then, right?
Right.
I just answered the same on youtube and if it's not you (not sure because I had a 4 several absolutely the same requests :) to me yesterday from different place),
What about modern unmanaged delegates? In referenced issue above we're talking also something about it and I think this is a main reason to me set automatically much less priority for this project in my timeline today (etc. https://www.reddit.com/r/x3F/comments/ovq368/highspeed_multiplication_of_large_numbers_fast/ )
"Corini"
Btw, I have donated you a monthly-fee for your work as a thanks to such big work
Thank you! it is really appreciated!!
. . .
The question is related to:
DllExport -version
: v1.7.4.29858+c1cc52fData
tab:Goal: To call a C# library DLL from Access VBA.
I got the below code working using .NET Framework 4.8:
And calling from VBA:
However, when I use the same code in a .NET 6 project MS Access crashes when the VBA call is made. I've tried changing several things with no success. Dependencies tool shows the same
CreateDotNetObject
entry point in the DLL file, so it's not that.What do I need to do to get this working with .NET 6?