October 28th, 2002, 3:28 pm
Hi, I'm having some problems with math in MSVCI'm writing an XLL for ExcelI want to catch exceptions raised when I compute an invalid math function, like log(-1), sqrt(-1)but these instructions are perfectly legal and the result is -1.#IND00000 (I think it's NaN).there is a function "_matherr" which is called whenever there's a problem with math function (where you could raise your exceptions), but I can read on MSDN that this function can be overridden only in an application (EXE file) and not in a DLLdoes anybody have a good idea?byea