我用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);谢谢你的建议。
https://stackoverflow.com/questions/27696404
复制相似问题