- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 C++/CLI中的资源清理(Destructor,Finalizer)
转自酷网动力(www.ASPCOOL.COM)在清闲之余,在此与大家探讨一下,C++/CLI中的资源清理。本文将分成三部分,他们分别是引言、Destructor,Finalizer的语法表示、如何保证Destructor,Finalizer与其他语言兼容。 一、 引言 资源是一个很大的范畴,先让我确定一下我们这里谈论的资源包括哪些内容。这里专指在面向对象编程中一个对象实例所使用的资源
2007-09-21 10:09:00
788
原创 到底能不能基于push模式的xml parser实现pull模式的parser?
我上一篇转载的文章中,那位大牛最后一句话说:While you can emulate the push model using pull-based components, you just cant build a pull model parser using a SAX parser. 但有如下一篇论文,说可以实现An interesting mini project:
2007-09-14 11:37:00
833
原创 A better way to parse XML documents in .NET (zz)
Takeaway: The .NET Framework supports the XML DOM parsing model, but not the SAX model. .NET guru Leonardo Esposito tells you why this is actaully an improvement for parsing XML in .NET.Although alw
2007-09-14 11:34:00
666
原创 《C++/CLI in Action》
C++/CLI in ActionNishant SivakumarApril, 2007 | 416 pages ISBN: 1-932394-81-8DESCRIPTION“... a great resource, an outstanding job, a must-read...” —Ayman B. Shoukry, VC++ Team, Microsoft Corporat
2007-09-13 10:01:00
1463
原创 dotnet学习笔记一 - 装箱拆箱 kenli(原作)
.NET算是集现有开发平台语言之大成了,也提出了不少新概念。装箱(boxing)和拆箱( unboxing)应该是一个了。 .NET的所有类型都是由基类System.Object继承过来的,包括最常用的基础类型:int, by te, short,bool等等,就是说所有的事物都是对象。但这样造成了及底的效率,比如简单 的两个数相加,bool取反都会导致从堆(Heap)中分配内存。怎样解决这个
2007-09-08 11:30:00
653
原创 [.NET]advantages and disadvantages of using c++ interop
The following are the advantages of C++ Interop:• You don’t need to use DllImport statements. You reference the unmanaged functionsusing the standard C/C++ header files.• C++ Interop is slightly faste
2007-09-04 09:26:00
651
原创 [.NET] /clr compiler options
The /clr compiler option has several variations. Each one applies a different set of restrictions on what you are allowed to code within a project. For interop between managed and unmanaged code, t
2007-09-02 16:41:00
758
原创 [.NET]C++/CLI and C# Interoperability
这是一个实现了native c++ code和mananged c++ code以及c# code相互调用的例子。首先用visual studio 2005创建一个clr支持的project,选择目生成为dll,创建两个类,一个是native的,一个是托管的。 //UnManaged.hnamespace USharedLib...{ class CUnmanaged
2007-09-02 16:13:00
828
原创 [.NET]c#调用DLL类中成员函数的一个例子
参照http://blogs.msdn.com/borisj/archive/2006/08/21/711530.aspx试验了一下如何在C#中调用DLL类成员函数,原文的例子没有试验成功,如果有人成功了,可以告知,谢谢!vc.net2005下创建一个testDLL的project名字为testDLL,选择windows application,选择生成dll。 #pragma onc
2007-08-31 10:45:00
3925
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人