开发者

Dynamic load C# dll in C++? [duplicate]

开发者 https://www.devze.com 2023-03-14 23:34 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: How to use c# Dll in vc++??
This question already has answers here: Closed 11 years ago.

Possible Duplicates:

How to use c# Dll in vc++??

Exporting a native C function from a .net DLL?

I'm writing C# dll that should be hooked to existing application written in C++ that uses dynami开发者_开发知识库c dll loading for plugins. I can't make any changes to C++ application.

I found a lots of tutorials on how to write C# COM dll that will be used in C++ using tlb (static loading), but none on how to write c# dll that will be dynamically loaded (as far as I now, no use of tbl in that case).

So, how to write dll in c# that will c++ application be able to dynamically load?

Dll just need two have two functions with signature:

int Test (char *A, char *B);

result should be returned via second parameter (char *B). That's how function should look if I were writing plugin in c++. I need to make the same thing, but in c#

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号