AaronRobinsonMSFT / DNNE

Prototype native exports for a .NET Assembly.
MIT License
394 stars 41 forks source link

How to call C++ method from C#? #167

Closed dayo05 closed 1 year ago

dayo05 commented 1 year ago

It looks great when calling C# from C++. But in opposite direction, it not works fine. I thought about using DllImport attribute but I have no idea what is name of dll. Any method about that?

ThaDaVos commented 1 year ago

Do you want to call a method from the generated dll? So the {AssemblyName}NE.dll?

dayo05 commented 1 year ago

No, But the method which I prefer to call exactly loaded into one process.

ThaDaVos commented 1 year ago

You need to know the name of the DLL if you want to import a method from it - else it cannot be done.

What method are you looking for? And where is it coming from?

dayo05 commented 1 year ago

I found dotnet/runtime#7267 ; Thanks for your attention :D