PDA

View Full Version : matherr



johnmauer
11th August 2010, 16:45
I'm converting old math routines to be consistent with the multiple compilers made possible with Qt, but haven't found any documentation for either "matherr" or "signal.h". Exception handling isn't part of Qt, but some form is a part of all detailed math calculations. Has anyone got a good reference, or any previous experience? Thanks

ChrisW67
12th August 2010, 05:34
This has nothing to do with Qt. There's nothing stopping you using standard C++ exception handling.

johnmauer
12th August 2010, 11:54
I used C++ exceptions, but had included a Microsoft specific handler for both matherr and the "signal" func.

void __cdecl HandleMathError(int sig, int subcode);
In making the change, I was curious if Qt had code in this area. Guess not. Thanks.