The information in this article applies to:
SYMPTOMSIt is difficult to explicitly throw a CdbException from the dbDAO class library. It is possible, depending on how the exception class is thrown, to generate this error:
CAUSE
This is because the constructor for the class is implicitly private. It
does not inherit, nor are any classes inherited from CdbException, and it
does not define any friends for the class.
RESOLUTIONThe error is generated if you declare an instance of CdbException and then attempt to throw it.
However, you can successfully throw the instance if you throw a temporary
instance of CdbException.
Now it is possible to catch this exception using C++ exception handling.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ 32- bit Edition version 4.1. Additional query words: kbVC400bug 3.00 4.00 4.10 vcfixlist410
Keywords : kbcode kbDAO kbDatabase kbMFC kbVC |
Last Reviewed: January 25, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |