Solved

CRecordset functions

Posted on 2003-11-28
2
289 Views
Last Modified: 2013-11-20
Hi

I have a CRecordset derived class which I have added a new method too, to enable
records to be added in my own custom way.

When I try and call

if(!Open())                                          // Open the Project recordset
      return FALSE;
if(!CanAppend())                                    // check we can add to the recordset object
      return FALSE;

I get an exception. It seems that MFC doesn;t like these methods to be called from
within the derived CRecordset class.

Does anyone know any different, or a way of calling these functions from within
the dervived class??


Thanks in advance

LittlePerson
0
Comment
Question by:LittlePerson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 50 total points
ID: 9837595
if(!Open())                                   // Open the Project recordset
     return FALSE;

Is the recordset already open at this point?

and equally for
if(!CanAppend())                              // check we can add to the recordset object
     return FALSE;

I would suggest putting a breakpoint at the two lines and seeing where the program ASSERTs when you step into the functions
0
 
LVL 6

Expert Comment

by:Triskelion
ID: 10024541
What's in your derived functions?
Do you simply pass control back to the base class ::Open() and ::CanAppend()?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
isEverywhere  challenge 19 91
NotAlone Challenge 20 93
wordmultiple challenge 12 170
how to use laptop or pad camera in vb.net windows application 2 131
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question