原创 .Net Windows Forms: How to Create a Custom Print Dialog

.Net Windows Forms: How to Create a Custom Print Dialog   By George Mihaescu   Summary: this article presents a solutio

原创 Analyzing the heap(s) of a Win32 program

Analyzing the heap(s) of a Win32 program   By George Mihaescu   Important note: this article was originally written i

原创 C++運算符優先級

Precedence<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Operator Description Example

原创 vs2008 c++特性簡介

http://msdn.microsoft.com/zh-cn/magazine/cc507634.aspx    

原创 多份源文件和靜態庫的產生的悲劇

有2個工程 project A, B分別是處理不同邏輯的工程,但是此二者都用到parser功能(在parser文件夾下,裏面包含了實現parser功能的源文件),但是某人爲了方便或偷懶,沒有將parser功能的那些實現組織成一個工程.

原创 彙編學習

EAX 是"累加器"(accumulator), 它是很多加法乘法指令的缺省寄存器。 EBX 是"基地址"(base)寄存器, 在內存尋址時存放基地址。 ECX 是計數器(counter), 是重複(REP)前綴指令和LOOP指令的內定

原创 圖方便的後果

前提 Project A 是一個window應用程序 Project B是一個動態庫 A依賴B的功能. 在調整A的工程屬性,不小心把A的Release編譯配置給刪除了,這時候,爲了圖方便,直接從原來Debug的工程配置複製一份,然後

原创 尋找野指針的那些天

class ViewItem{ on_mouse_down(pt){ mouseDown = true; } on_mouse_up(pt){ owner->SendMessage(wm_view_item_clicked); mous

原创 WSAAsyncSelect出現10093錯誤的原因

假設: 有dll   my_dll  CWinAppDll{ InitInstance(){ m_socket.Socket(SOCK_DGRAM); //這幾個可選參數,導致套接字爲異步模式,並且啓用了WSAAsyncSelect通知

原创 pugixml 一個xml解析庫 簡單快速, 支持XPath表達式, 感謝作者

  只是簡單的翻譯了pugixml文檔,暫時未翻譯XPath部分. /* 1.對象模型 pugixaml存儲XML數據爲DOM風格,整個xml文檔(文檔結構和元素數據)被存儲在內存中作爲一棵樹.這棵樹可以從字符流(文件,字符串,C++

原创 google snappy庫試用

#include "stdafx.h" #include "../snappy-1.0.3/snappy-c.h" #include <string.h> #include <assert.h> int _tmain(int argc,

原创 How to correctly translate an error code into an error message

When you need to get the message corresponding to a system (Win32) error code, use the following:   //get the error cod

原创 開始學習編程了。

2008-07-05 是個不錯的日子

原创 WS_CLIPCHILDREN 風格的一些問題

具體該風格的父窗口,如果在調整子控件位置時候使用MoveWindow函數,參數repaint必須設置爲true,否則有可能導致某個控件在onpaint時候的剪切區域是錯誤的,導致其他子控件沒有完整繪製出來

原创 bat腳本調用python

 轉載於 http://www.cnblogs.com/harrychinese/p/call_python_cli_in_batch_script.html windows start命令, 啓動另一個窗口運行指定的程序或命令