摘要: Some times we could want to print the debug messages to a window (console or windows)or a file, we debug our programms with these information. There's a better way to debug programm, print the message to output window if you use VS, and you can double click the message to locate the source codes 阅读全文
posted @ 2011-04-21 17:27 能巴 阅读(470) 评论(0) 推荐(0)
摘要: 1. Boxing and UnBoxing in C++/CLIint^ hi = 123;int c = *hi;2. Use C# functions with ref/out arguments in C++/CLIIf the argument is dotNet value type, then directly create an instance of it on stack in C++/CLI and pass it when calling the C# function;if the argument is dotnet ref type,then create a . 阅读全文
posted @ 2011-04-21 17:15 能巴 阅读(438) 评论(0) 推荐(0)
摘要: From MSDN Structs differ from classes in several important ways: Structs are value types (Section 11.3.1).All struct types implicitly inherit from the class System.ValueType (Section 11.3.2).Assignment to a variable of a struct type creates a copy of the value being assigned (Section 11.3.3).The de. 阅读全文
posted @ 2011-04-21 16:10 能巴 阅读(183) 评论(0) 推荐(0)