Smart Pointers - What, Why, Which?What are they?Smart pointers are objects that look and feel like pointers, but are smarter. What does this mean?To look and feel like pointers, smart pointers need to have the same interface that pointers do: they
在DirectX的Bin目錄下有一個很好的工具-GraphEdit,通過這個工具能夠很好的反映音頻錄製的過程。可以總結一點,DirectShow音訊錄製過程就是,枚舉、綁定、串連這三個步驟。接下來看看這三個步驟是如何?的呢? 在此之前,先來介紹下幾個涉及到的COM對象。 ICaptureGraphBuilder2 IBaseFilter The IBaseFilter interface is the primary interface for
IO_STACK_LOCATION 結構The IO_STACK_LOCATION structure defines an I/O stack location, which is an entry in the I/O stack that isassociated with each IRP. Each I/O stack location in an IRP has somecommon members and some request-type-specific
今天重新看了《STL原始碼剖析》,不禁要讚歎STL設計的經典。STL 的空間適配代碼設計的尤為精闢,不僅考慮到記憶體片段的隱患,而且考慮到指標空間的節儉和複用,降低維護鏈表(lists)帶來額外的負擔。我們來看看如下代碼;先看看STL的結構體,union obj{ union obj *free_list_link; char clent_data[1]; /* the client sees this */};obj
MSDN:When using AcceptEx, the GetAcceptExSockaddrs function must be called to parse the buffer into its three distinct parts (data, local socket address, and remote socket address). On Windows XP and later, once the AcceptEx function completes and
In data centers today, many computers suffer the same underutilization in computingpower and networking bandwidth. For example, projects may need a large amount of computing capacity to complete a computation, but no longer need the
One problem which often arises during programming is how to build a base set of functionality which can be extended by the user, while still being modular enough to make it easy to replace only certain parts of an implementation without