乙個使用的錯誤除錯方法

2021-06-04 00:07:44 字數 537 閱讀 9939

在visual c++

中,可以在監視視窗新增 $err,hr 一行來實時現實錯誤。除錯過程中,該項相當於在每次呼叫api函式之後呼叫getlasterror函式。其值由兩部分組成,乙個是錯誤**(十六進製制),另乙個是錯誤**所對應的文字提示。

安裝vs2010之後在安裝vs2008的msdn之後會出錯誤

解決辦法

對於32位機器,查詢登錄檔的項:

[hkey_classes_root/clsid//inprocserver32],

把它的預設值修改為:

c:/program files/common files/microsoft shared/msenv/textmgrp.dll

而對於64位的機器,查詢項:

[hkey_classes_root/wow6432node/clsid//inprocserver32]

把它的預設值修改為:

c:/program files (x86)/common files/microsoft shared/msenv/textmgrp.dll

libcurl 使用的乙個錯誤

作者 yu tao 關鍵字 libcurl,liboauth,kpfs,longjmp chk,curlopt nosignal 近來遇到乙個 libcurl crash 的問題,這裡記錄一下。出錯的 log longjmp causes uninitialized stack frame kpfs...

使用chttpfile的乙個錯誤

先貼一部分 需要提交資料的頁面 cstring strformdata username abc password 123 需要提交的資料 請求頭try catch cexception e cstring strsentence,strgetsentence if fileget afxmessa...

乙個equals方法引發的錯誤

今天在寫乙個狀態判斷的時候,沒有注意到其中乙個物件為short,另外乙個是基本型別int,導致雖然數值相等但是equals方法返回false,查詢short方法和equals方法後得知,大多數類都重寫了equals方法,重寫的時候一般第一步就是判斷型別是否相同,不同就返回false。所以雖然shor...