The information in this article applies to:
SYMPTOMSIf you override the CDaoRecordset::Open() function using ClassWizard, the new function will never be called. CAUSEThe Wizard places an UINT type for the first parameter rather than an int. The code should read:
rather than:
RESOLUTION
Change the type of the first parameter in your Open() function from UINT to STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 4.2. MORE INFORMATIONSample CodeThe following sample code shows the correct function prototype for a CDaoRecordset-derived class named CMySet:
Additional query words: kbVC400bug
Keywords : kbDAO kbDatabase kbMFC kbVC kbVC420fix |
Last Reviewed: July 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |