Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you export a method in a CIL DLL so that a native program can call it?

Tags:

People also ask

Which keyword can be used to disable name decoration when exporting a function from a DLL?

You can use the "-Wl,--kill-at" linker switch to disable name mangling.


I have reviewed ECMA 335 and I have only found a reference to the .export keyword which seems promising but has very little documentation. I have found similar questions on StackOverflow with respect to doing this in C#. However, none of that has lead me anywhere useful so far.

The bottom line is: I have a CIL DLL and I want to invoke some of its static methods from a native C++ application.