0x00544FBF 处(位于cplus2.exe中)引发的异常:0xC0000005:读取位置0x00000000时发生访问冲突。

0
#include <graphics.h>
#include <conio.h>

int main()
{
	TCHAR s[] = _T("Hello World");
	outtextxy(10, 20, s);
	return 0;
}
ava
何时可掇

2021-6-19

0

你没有创建绘图窗口或选择绘图设备,导致 outtextxy 执行出错。

在 VC2010 的控制台程序中使用 EasyX,请参考 https://easyx.cn/how-to-vc2010

在 VC2010 的窗口程序中使用 EasyX,请参考 https://easyx.cn/how-to-vc2010-win

ava
慢羊羊

2021-6-19

技术讨论社区