How can I export my c# dll functions to be able to use them from unmanaged programs.
- For example : Dll in c# and the application in Delphi/c++ .
I don't have the source of the exe because is not Open S. Can't use COM.
How can I export my c# dll functions to be able to use them from unmanaged programs.
I don't have the source of the exe because is not Open S. Can't use COM.
I recommend using Robert Giesecke's Unmanaged Exports.
.export [1]
to a method to export a method in slot one of the unmanaged export table. A marshaling thunk gets generated at runtime. Use the normal marshaling attributes like you would with forward P/Invoke to customize the effective native signature. The .export
clause also takes an optional 'as exported_name' clause to allow you to set the name in the export table. –
Notation © 2022 - 2024 — McMap. All rights reserved.