coder007

hi.. i m migrating my project from vc6 to vc8 and got following waring during compilation

warning C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)

for following functions:

void CheckDBFileStatus(LPTSTR szFilePath) throw (CSimError);

void CSimQueue:Stick out tongueush_ReqID(REQUESTID ReqID) throw(CSimError)

{

//

}

can anyone pls help ..



Re: Visual C++ General warning C4290

Peter Ritchie

You can ignore those warnings. Visual C++ does not implement checked exceptions, so C4290 is just informing you that other exceptions may still be throw from these functions.

You can remove the throw specification from those methods, or add #pragma warning(disable: 4290) to your main header file. Alternatively, you can add 4290 to the Disable Specific Warnings of your project configuration (Project\Properties, configuration Properties\C/C++\Advanced).