[英]TextOut() - “invalid null pointer”
我已經用C ++編寫了一個顯示白色窗口的程序。
此外,我在窗口中顯示文本。 為了達到這個目的,
我使用TextOut()
-Function。 工作正常
但是除了顯示的句子外,還會顯示以下內容:
invalid null pointer (__onexitbegin != NULL && __onexitend != NULL)||(__onexitbegin == NULL && __onexitend == NULL)
出現此錯誤后,有很多中國標志。
我在互聯網上進行了研究,但還沒有發現任何有用的信息。
這是我用來顯示文本的代碼:
const wchar_t* string = L"This is a test.";
hdc = BeginPaint(hwnd, &ps);
TextOut(hdc, 0, 0, string, 500); //the length is just for test purpose
EndPaint(hwnd, &ps);
感謝您的意見。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.