原创 我的友情鏈接

51CTO博客開發

原创 Windows Phone Summit

http://channel9.msdn.com/Events/Windows-Phone/Summit   Waiting for Windows Phone 8, waiting for me being the developer f

原创 VC warning C4251

In a VC dll project, when we export a class which contains a not exported class variable, VC will have a warning(C4251).

原创 CoMarshalInterThreadInterfaceInStream CoGetInterfaceAndReleaseStream

// Define the istream which stores marshalled interface pointerIStream* iStream; // Marshal the pointer in one threadhRe

原创 Guid2String

    #include "stdafx.h"  #include <guiddef.h>  #include <xstring>  #include <ObjBase.h>   void Guid2String(const GUID& g

原创 Thread&Delegate in C#

using System;using System.Collections.Generic;using System.Linq;using System.Text; using System.Threading; namespace Sim

原创 SAFEARRAY and CComSafeArray

#include <atlcomcli.h>#include <atlsafe.h> void SafeArrayTest(){    SAFEARRAY * psa; // The safearray    SAFEARRAYBOUND

原创 巧在MFC的相關方法中設斷點

有時候debug的時候找不到合適的地方設斷點,比如哪裏把cursor設成等待狀態,誰加了一個右鍵菜單了。好在microsoft給我們提供了MFC的pdb,它們在c:\WINDOWS\Symbols\dll將其設到VS的debug==>Sym

原创 CComVariant CComSafeArray VARIANT

#include "stdafx.h" #include <atlcomcli.h>#include <ATLSAFE.H> int _tmain(int argc, _TCHAR* argv[]){    unsigned char p[