摘要:
1. On VS2010, VC project builds with MSBuild (vcxproj) to get a consistent building system for all languages.2. No matter which platformtoolset is selected (v100 or v90), MSBuild is used for building ... 阅读全文
摘要:
In a managed C++ project, we can use the “using namespace” expression to include managed types. Just like using “#include” incorrectly will cause some compile error, declaring ... 阅读全文
摘要:
C# contains a struct called Intptr, which aims to be the same position as void* in unmanaged world. So it will be 32bit on x32 hardware and OS and be 64bit on x63 platform. So be careful about misusin... 阅读全文
摘要:
MSDN Returns a string array containing the command-line arguments for the current process.Input at the command lineResulting command line argumentsMyApp alpha betaMyApp, alpha, betaMyApp "alpha with s... 阅读全文
摘要:
We are developing a app called Fusion. It's a strange app, as: it's a MFC app while internally MFC app is just its clothes and it makes use of C++/CLI and mainly C# assemblies to do the real job. Its ... 阅读全文
摘要:
Configure to make a app run against the same dotNet FrameworkFor every app, if it has assemblies that are built based on dotNet framework, then it can have a app.exe.config file to support a applicati... 阅读全文
摘要:
转载自:C++数据类型转换技巧类型转换是将一种类型的值映射为另一种类型的值。进行数据类型的转换。 是在实际代码编写中经常遇到的问题,特别是字符串和其他类型的转换。 1.将字符串转换为整数 (1).转换函数 // 双精度函数 double atof( const char *string ); double _wtof( const wchar_t *string ); 自适应 TC... 阅读全文
摘要:
How to: Convert Between Various String Types 阅读全文
摘要:
I recently met a issue that: when starting our app by command line way (passing several arguments to the app), on Win7, the specified file can always be opened after lanuching our app, while on XP, th... 阅读全文
摘要:
调用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 ... 阅读全文