try...catch问题
第一次用,请教。
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?)