原创 VC:__declspec(novtable)

標題   VC:__declspec(novtable)     選擇自 toby 的 Blog 關鍵字   VC:__declspec(novtable) 出處     C++裏virtual的缺陷就是vtable會增大代碼的尺

原创 文件讀寫操作總結

一.C-Runtime 函數 1. _tfopen函數。 一般用於客戶端,只能獨享打開的文件,不能以共享的方式打開。 FILE *fopen(    const char* filename,    const char* mo

原创 Hook up your debugger to VM

Debugger setup for VM’s (works for Vista+; minor changes needed for downlevel – ask if needed)   1)      On the host, i

原创 WinDbg的使用

如何將應用程序綁定到Windbg上面。 1.寫註冊表文件(.reg)Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows

原创 創建透明窗體

將如下代碼放入窗口初始化函數中如: OnInitDialog()   SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE, GetWindowLong(this->GetSafeHwnd(

原创 Managed Code Debugging with WinDbg

There are two windbg extentions that add support for managed code debugging. SOS. This is available on every machine th

原创 Debugging Managed Code with Windbg

Here's a sample session on running Windbg in a test cloud. One afternoon, we kept getting the following email messages

原创 高質量C++/C編程指南 電子書網址

http://man.chinaunix.net/develop/c&c++/c/c.htm

原创 Managed code debuggging with Windbg 2

1. Set Enviroment Variables    _NT_SYMBOL_PATH = SRV*c:/websymbols*http://msdl.microsoft.com/download/symbols 2. .load

原创 使應用程序只能運行一個實例

這裏涉及兩個基本的問題,一是在程序的第二個實例啓動時,如何發現該程序已有       一個實例在運行,而是如何將第一個實例激活,而第二個實例退出。   方法一:   對於第一個問題,可以通過給應用程序設置信號量,實例啓動時首先檢測該信號量

原创 讓模板類支持可變模板參數

#pragma once #include <string> using namespace std; class Action { public: virtual string CanDo() = 0 ; }; class Fl

原创 How to use WinDBG to debug

How to use WinDBG to debug   Collecting Memory Dump   The easiest way to collect memory dump is to use adplus.vbs scri