debug assertion failed!報錯

debug assertion failed!報錯。如下圖所示,這類報錯的原因有很多,我的代碼裏面報錯爲 this->SetWindowText(「SN串口下載工具」);這句話報錯。this指當前對象 之前出錯是this->SetWindowText(「SN串口下載工具」);這句話用在構造函數裏面會報錯。用在mfc的OnInitDialog()函數裏面會有結果也不會報錯。
相關文章
相關標籤/搜索