真是奇怪了,为什么我的程序一加上AfxGetApp()->SelectPrinter("Informatik Image Driver 2.0",NULL)运行时就错?
为什么我的程序一加上AfxGetApp()->SelectPrinter("Informatik Image Driver 2.0",NULL)运行时就错?
当我退出程序时,总是弹出一个对话框,标题是“Microsoft Visual C++ Debug Library”
对话框上的内容是:
Debug Assertion Failed!
Program:E:\faxclient\a.exe
File:winutil.cpp
Line:156
For information on how your program can cause an assertion failure,see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
终止 重试 忽略
------------------------
不加AfxGetApp()->SelectPrinter(),退出时就没错,为什么?