RSS 2.0 Feed
.Net
摘要:How do I mix C# and C++ code in a single assembly?  If your C++ code is not compiled with /clr:safe (i.e. it is compiled with /clr or /clr:pure), do the following: 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   If your C++ code is compiled with /clr:safe, build your C++ code as a .netmodule.  You can use it just like you would......[阅读全文]

posted @ | Feedback (14) | Filed Under [ .Net ]

摘要:MSDN新推出了一个系列 http://msdn.microsoft.com/netframework/programming/classlibraries/ Designing .NET Class Libraries The Designing .NET Class Libraries series presents design guidelines for developing classes and components that extend the .NET Framework. The goal of the Designing .NET Class Libraries series is to encourage consistency and predictability in public APIs while enabling Web and cross-language integration. The guidelines presented in Designing .NET Class Libraries are intended to help class library designers understand the trade-offs between different solutions. There might be situations where good library design requires that you violate these design guidelines. Such cases should be rare, however it is important that you provide a solid justification for your......[阅读全文]

posted @ | Feedback (10) | Filed Under [ .Net ]

摘要:如果你关心VC 2005的话,你应该阅读Stan Lippman的blog. http://blogs.msdn.com/slippman Stan Lippman写的<<C++ Primer>>,可能是世界上最流行的C++入门书了....[阅读全文]

posted @ | Feedback (16) | Filed Under [ .Net ]

摘要:Herb Sutter在他的blog上讨论了C++/CLI的deterministic destruction. http://pluralsight.com/blogs/hsutter/archive/2004/11/23/3666.aspx Herb Sutter是C++ Standard Committee 的主席.他现在在微软主持VC 2005(即C++/CLI)的设计....[阅读全文]

posted @ | Feedback (9) | Filed Under [ .Net ]

摘要:每个人都说Ngen可以加快程序的启动速度.可到底有多大作用呢? Rico 给了个例子: Cold Startup Performance 他的数据表明,NGEN最大的作用还是在warm startup的时候.如果你有多个程序运行的话,基本上就是warm startup了. ...[阅读全文]

posted @ | Feedback (12) | Filed Under [ .Net ]

摘要:有朋友问为什么.Net Framework Service Pack没有用publisher policy. 下面是我的一个回答: http://blogs.msdn.com/junfeng/archive/2004/10/11/240822.aspx There are several reasons: 1. Publisher Policy can be opted out by applications. In App.Config you can say publisherPolicy="No", effectively ignore any publisher policy. Majority of the fixes in SP are security fixes. We don't want people to opt out security fixes. In retrospection, the reason we introduce publisherPolicy="No" is for app compat. Since then the thinking has been shifted to security first. 2. Framework assemblies are tested in a group. And we want to ship them in a group. This is the same reason we introduce framework unification policy. We tested all the framework assemblies in......[阅读全文]

posted @ | Feedback (153) | Filed Under [ .Net ]

摘要:这是MSDN上的一篇介绍VC++2005的文章. http://msdn.microsoft.com/visualc/default.aspx?pull=/library/en-us/dnvs05/html/VS05Cplus.asp 我现在也在学习VC++2005,有时间写一点心得....[阅读全文]

posted @ | Feedback (8) | Filed Under [ .Net ]

摘要:C5 http://www.itu.dk/research/c5/  C5 is a library of generic collection classes for the upcoming version 2.0 of the .Net platform. C5 extends the standard .Net System.Collections.Generic namespace with tree data structures, heap based priority queues and hash indexed array lists and linked lists, making it more comprehensive than most collection class libraries on similar platforms. Unlike many other collection class libraries, C5 is designed with a strict policy of supporting "code to interface not implementation". 之所以看到那么多的Collection,我想还是因为.Net framework现在没有提供完整的数据结构.我的intern就向我抱怨说.Net framework 1.1里没有linkedList和Tree....[阅读全文]

posted @ | Feedback (8) | Filed Under [ .Net ]

摘要:Jeffrey Richter和他的在Wintellect的朋友开始了一个Open Source的项目 PowerCollectiolns http://www.wintellect.com/powercollections/ 他们的目的是要实现更多的.Net Collection. 数据结构这种东西,作为一个社区项目可能更合理一些....[阅读全文]

posted @ | Feedback (8) | Filed Under [ .Net ]

摘要:在我的英文blog上发表了一篇关于Domain Neutral Assemblies的文章. http://blogs.msdn.com/junfeng/archive/2004/08/05/208375.aspx 很抱歉没有中文版.如果谁有兴趣帮忙的话不胜感激....[阅读全文]

posted @ | Feedback (9) | Filed Under [ .Net ]

Full .Net Archive