第一次用,请教。
try{...........
.................
...........
}
catch ( CFileException, e ){
AfxMessageBox( "dddddddddddd!");
return FALSE;
}编译出错:
Compiling...
SPCModuleInterface.cpp
D:\face.cpp(165) : warning C4101: 'strTemp1' : unreferenced local variable
D:\face.cpp(164) : warning C4101: 'ntemp1' : unreferenced local variable
D:\face.cpp(252) : error C2143: syntax error : missing ';' before 'try'
D:\face.cpp(252) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(252) : error C2447: missing function header (old-style formal list?)
D:\face.cpp(258) : error C2143: syntax error : missing ';' before 'catch'
D:\face.cpp(258) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(258) : error C2447: missing function header (old-style formal list?)
try{...........
.................
...........
}
catch ( CFileException, e ){
AfxMessageBox( "dddddddddddd!");
return FALSE;
}编译出错:
Compiling...
SPCModuleInterface.cpp
D:\face.cpp(165) : warning C4101: 'strTemp1' : unreferenced local variable
D:\face.cpp(164) : warning C4101: 'ntemp1' : unreferenced local variable
D:\face.cpp(252) : error C2143: syntax error : missing ';' before 'try'
D:\face.cpp(252) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(252) : error C2447: missing function header (old-style formal list?)
D:\face.cpp(258) : error C2143: syntax error : missing ';' before 'catch'
D:\face.cpp(258) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(258) : error C2447: missing function header (old-style formal list?)
解决方案 »
- clistctrl隐藏滚动条问题,
- CFormView,滚动条问题,请高手指教
- 超爽东东,大家来试试
- 借人气问一下:关于车牌自动识别系统的报价
- ЖЖ很奇怪的问题,用_beginthreadex启动多个线程对硬盘所有盘符设置为监测模式,为何给线程函数传递结构参数的时候总是不能监测呢?ЖЖ
- !!!!!!!!!!!!!快加vc群(号:10647837、10647333、10647477)都是vc群,错过就没机会了。其中10647477是高手群!!!!!!!快来加吧
- getc()读CRichEditDoc/View类生成得应用程序中新建文件得问题???
- 帮忙看看错误
- 请问关于继承CEdit,如何知道CEdit的protect和其他我需要继承的方法?
- 菜鸟问题,关于caption
- 如何把一个binary文件包含到我的程序生成的exe文件里面?
- vc做数据库时如何显示数据集?
逗号去了
可还是那个错误。
用catch (Exception e)
也出错。++++++
我是在调用dll文件时捕获他的异常;
try{
int face::Create(INPUT * pInput,OUTPUT * pOutput)
{
return
}
}
catch ( _com_error &e ){
DisplayError(e);
AfxMessageBox( "dddddddddddd!");
return FALSE;
}--------------------Configuration: Server - Win32 Debug--------------------
Compiling...
face.cpp
D:\face.cpp(165) : warning C4101: 'strTemp1' : unreferenced local variable
D:\face.cpp(164) : warning C4101: 'ntemp1' : unreferenced local variable
D:\face.cpp(251) : error C2143: syntax error : missing ';' before 'try'
D:\face.cpp(251) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(251) : error C2447: missing function header (old-style formal list?)
D:\face.cpp(257) : error C2143: syntax error : missing ';' before 'catch'
D:\face.cpp(257) : error C2143: syntax error : missing ';' before '{'
D:\face.cpp(257) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
Creating browse info file...Server.exe - 6 error(s), 2 warning(s)