程序“[12760] kkkkk.exe: 本机”已退出,返回值为 1 (0x1)。
#include "stdio.h"#include <afxwin.h>
#include <afx.h>
int main(int argc, _TCHAR* argv[])
{
HANDLE hCom=CreateFile((_T("COM7")), GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL|FILE_FLAG_OVERLAPPED,NULL);
if(hCom==(HANDLE)-1){
AfxMessageBox(_T("打开COM失败!"));
return FALSE;
}
return TRUE;
}
“kkkkk.exe”: 已加载“D:\系统文件\文档\Visual Studio 2010\Projects\kkkkk\Debug\kkkkk.exe”,已加载符号。
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\mfc100ud.dll”,已加载符号。
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\oleaut32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\user32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\gdi32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\shlwapi.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\WinSxS\x86_microsoft.\comctl32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\msimg32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\msvcrt.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\combase.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\rpcrt4.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\advapi32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\sspicli.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\sechost.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\cryptbase.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\bcryptprimitives.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\imm32.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\msctf.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\uxtheme.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\dwmapi.dll”,Cannot find or open the PDB file
“kkkkk.exe”: 已加载“C:\Windows\SysWOW64\mfc100chs.dll”,未使用调试信息生成二进制文件。
程序“[12760] kkkkk.exe: 本机”已退出,返回值为 1 (0x1)。