摘要: 调用Dispose方法As known, for C#, it will call IDispose::dispose() of a class to release resources, while for C++/CLi, it needs call "delete obj" to the same work. A fact is that: no matter a dotNet class ... 阅读全文
posted @ 2010-09-30 15:31 能巴 阅读(198) 评论(0) 推荐(0)
摘要: We are so used to adding dotNet module references and project references, but rarely meet situations requiring adding other dotnet module directly. The Other dotnet module consists of 3 kinds: --preco... 阅读全文
posted @ 2010-09-30 15:30 能巴 阅读(528) 评论(0) 推荐(0)
摘要: 1. C# VS COM---------directly add the COM tlb as reference and then make use of com class just like native dotNet class. 2. C# VS unmanaged module------------PInvoke. More about PInvoke: System.Runtim... 阅读全文
posted @ 2010-09-30 15:14 能巴 阅读(246) 评论(0) 推荐(0)
摘要: It's more C++ style. Some key basic points: --using namespace XX --NO internal keyword --Organize a class/struct like C++. "Public:", "Private:" --No below keywords which are only for C#: foreach, usi... 阅读全文
posted @ 2010-09-30 15:08 能巴 阅读(155) 评论(0) 推荐(0)