开发者

Calling a C++ code from C# [duplicate]

开发者 https://www.devze.com 2023-03-13 02:35 出处:网络
This question already has answers 开发者_开发知识库here: Closed 11 years ago. Possible Duplicate:
This question already has answers 开发者_开发知识库here: Closed 11 years ago.

Possible Duplicate:

Possible to call C++ code from C#?

I have an issue. I have a project that requires me to call a code that was written in Visual C++ 6.0 by someone else from my VS2008 C# code. I was wondering if anyone know how to do this. Thanks


If the assembly is COM visible you can add it as a reference to your C# project.

If not, you can use PInvoke to do so. Also, PInvoke.net is an invaluable resource for this sort of thing.

0

精彩评论

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

关注公众号