开发者

Looking for code sample on creating C++ DLL then P/Invoke in C# (For Windows CE 5/6)

I am experienced in C# but not in C++. Recently my Windows CE 5 C# program is hitting performance issue and I am considering moving calculation to C++ DLL then P/Invoke it from C# since C++ supports hardware float-point co-processor while .NET CF does not.

I am searching the net all morning trying to find a complete sample that demonstrate creatin开发者_开发百科g C++ DLL then P/Invoke in C# but could not find any.

Could anyone point some good sample or article for me?

Thanks a lot!!


Take a look at the first answer of this question. This deals with declaring your C functions so that C# can P/Invoke them.

A very useful page when P/Invoking is pinvoke.net, check it out


I finally found a good article discussing how to create C++ DLL for C#

http://forums.ni.com/t5/Measurement-Studio-for-VC/How-to-create-dll-in-Visual-Studio-2008-in-Visual-C/td-p/698632

Mentioned by ChinJohn a complete example is located here: http://www.coodtec.com/wordpress/?p=130

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜