顯示具有 coding 標籤的文章。 顯示所有文章
顯示具有 coding 標籤的文章。 顯示所有文章

activex control test container for VS 2008

也許你會發現在VS 2008找不到 activex control test container,

事實上還是在的,是被放在範例中,要自行編譯:

[Program Files]\Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples.zip


解開zip檔後,在 C++\MFC\OLE\TstCon 這個專案中,


如果你是win32平台,開啟專案後,再編譯之前,先到 build\Configuration Manager 中,將平台設定為 Win32


之後在 TCProps 專案設定中,將 Linker / Manifest File 中的 Enable User Account Control 設成 NO


編譯之後,TstCon.exe 就是 activex control test container 啦~~~

TortoiseSVN: 解決TSVNCache佔用CPU過高的設定

就是把  Icon Overlays/Status Columns改成shell
原文在此

註冊OCX

假設你的OCX放在D:\test\test.ocx

於command line:

註冊:
regsvr32 D:\test\test.ocx


反註冊:
regsvr32 /u D:\test\test.ocx

附註:如果是VISTA以上的系統,須有管理員身分才能執行註冊

alignment of dynamic allocation

// MS:

#include <malloc.h>

_aligned_malloc(int size, int align)
_aligned_free(void* p)

----------------------------------------------------------------------------

// GCC:

#include <mm_malloc.h>

_mm_malloc(int size, int align)
_mm_free(void* p)