How do I mix C# and C++ code in a single assembly?
1) compile your C++ code into .obj files
2) compile your C# code into a .netmodule, using /AddModule to reference the C++ .obj files
3) link the C# netmodule directly with the C++ object files using the C++ linker to create a mixed language assembly
This applies to .Net framework beta2+.
打印 | 张贴于 2005-05-25 16:15:00 | Tag:.Net
留言反馈
还有包括导入C++的dll
界面的问题得用patent去处理
但是主框架和界面设计技术含量也很高,发布起来感觉还是很不爽。其实用VC/MFC也能完全实现,就是数据接口部分不用ADO.Net的话则不太顺利。微软又不继续支持ADO,只好跟进ADO.Net。
Sigh!
一般办法是用C++写重要部分,然后interop.
请问张兄,微软是否准备提出比那个不太起作用的混淆器更好的解决方案呢?谢