博客园  :: 首页  :: 联系 :: 管理

2006年12月14日

摘要: Like you observed, in DllMain (from dllmodul.cpp) we check if __mixedModuleStartup and we don't call InternalDllMain. We do call it later, after managed initalization, using PostDllMain. Not sure if y... 阅读全文

posted @ 2006-12-14 18:58 sunrack 阅读(563) 评论(0) 推荐(0)

摘要: In Visual C++ .NET and Visual C++ 2003, DLLs compiled with the /clr compiler option could non-deterministically deadlock when loaded; this issue was called the mixed DLL loading or loader lock issue. ... 阅读全文

posted @ 2006-12-14 18:16 sunrack 阅读(983) 评论(0) 推荐(0)

摘要: Hi, I’m George Mileka and I work on the Visual C++ libraries team. My team owns the CRT, ATL, MFC and STL… One subject I have always been interested in is the startup code and initialization. The subj... 阅读全文

posted @ 2006-12-14 17:53 sunrack 阅读(448) 评论(0) 推荐(0)

摘要: 大家都知道,当编写一个win32 console application时,当运行此类程序的时候默认情况下会有一个类似DOS窗口的console窗口,但是有的时候我们只想在程序中运行一段功能代码,不希望显示这个console窗口,让代码执行完毕之后程序自动退出. 下面就介绍一下,如何隐藏win32 console application的console窗口 因为此种方法是通过设置编译器的链接开关来... 阅读全文

posted @ 2006-12-14 16:23 sunrack 阅读(1291) 评论(0) 推荐(0)

摘要: User-defined reference types are data types a programmer develops that are accessed using handles,and where the actual data object is located on the managed heap. All reference types in C++/CLI areg... 阅读全文

posted @ 2006-12-14 01:32 sunrack 阅读(184) 评论(0) 推荐(0)

摘要: The value struct and value class data types are basically C++/CLI’s equivalent to traditional C++’sclass and struct data types but with an added bonus. Both are unmanaged (not garbage collected)constr... 阅读全文

posted @ 2006-12-14 01:24 sunrack 阅读(811) 评论(0) 推荐(0)

摘要: Table 2-8. Character Fundamental TypeC++/CLI Alias Class Library Valuewchar_t System::Char A single 16-bit Unicode character The .NET Framework class library System::Char is a 16-bit Unicode character... 阅读全文

posted @ 2006-12-14 01:06 sunrack 阅读(185) 评论(0) 推荐(0)

摘要: Only three kinds of user-defined value types can be created using C++/CLI:• enum class or enum struct (equivalent)• value struct• value classThe enum class and enum struct types are simply named const... 阅读全文

posted @ 2006-12-14 01:05 sunrack 阅读(154) 评论(0) 推荐(0)

摘要: Conceptually, enums and consts share a lot of similarities. Both enable better readability of code.They also allow for the actual value being represented to be maintained at one location in your code,... 阅读全文

posted @ 2006-12-14 01:05 sunrack 阅读(278) 评论(0) 推荐(0)