Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL program Pin
Nish Nishant14-May-02 22:33
sitebuilderNish Nishant14-May-02 22:33 
GeneralRe: STL program Pin
markkuk14-May-02 22:26
markkuk14-May-02 22:26 
GeneralWhy is this so sh*tty ? (CComControlBase::IDataObject_GetData) Pin
Braulio Dez14-May-02 21:36
Braulio Dez14-May-02 21:36 
GeneralRemote Desktop Sharing Pin
Birdy14-May-02 21:27
Birdy14-May-02 21:27 
QuestionHow to make an application background service Pin
Birdy14-May-02 21:20
Birdy14-May-02 21:20 
AnswerRe: How to make an application background service Pin
Orbital^14-May-02 21:46
Orbital^14-May-02 21:46 
AnswerRe: How to make an application background service Pin
Nish Nishant14-May-02 22:00
sitebuilderNish Nishant14-May-02 22:00 
GeneralMFC+DAO database, 0 records inspite of data in file Pin
samiujan14-May-02 20:05
samiujan14-May-02 20:05 
Confused | :confused:

Hi,

In a nutshell: If i kill an MFC+DAO based server application while it is updating records using ctrl-c, the application exits and the database shows 0 records even though, 2 seconds ago, DaoRecordset::RecordCount() was returning 1000.

It listens for messages on a socket and updates a RecordSet in table "CallLog".

During update, I can see that RecordSet_for_CallLog.GetRecordCount() returns 10, 11 & 12 etc. records as messages are received over the socket, parsed and updated in the dbase.

The problem occurs when I close the application midway while it is updating the Recordset. I can see that previous calls to GetRecordCount() were returning 10, 11, 12 etc. but when I open the database file in MS Access, there are no records in the table CallLog.

If I open the file in Notepad, I can see the Record data in a jumbled form somewhere. So I guess, for some reason, MS Access garbles up the file while exiting, can someone tell me why? I need to handle this to avoid accidental failure.

The main class is not derived from CWinApp. I call the constructor and methods directly in _tmain(). I made the application using the "Win32 Console Application" option in the New project Wizard and later checked the option for MFC support.
GeneralRe: MFC+DAO database, 0 records inspite of data in file Pin
John Clump14-May-02 22:22
John Clump14-May-02 22:22 
GeneralRe: MFC+DAO database, 0 records inspite of data in file Pin
samiujan15-May-02 1:48
samiujan15-May-02 1:48 
GeneralRe: MFC+DAO database, 0 records inspite of data in file Pin
Jon Hulatt15-May-02 0:02
Jon Hulatt15-May-02 0:02 
Questionsearch in a list ?? Pin
14-May-02 18:56
suss14-May-02 18:56 
AnswerRe: search in a list ?? Pin
Christian Graus14-May-02 22:02
protectorChristian Graus14-May-02 22:02 
AnswerRe: search in a list ?? Pin
Aizik Yair14-May-02 23:06
Aizik Yair14-May-02 23:06 
Generalexecutable still running in back evenafter file exit Pin
14-May-02 18:54
suss14-May-02 18:54 
GeneralRe: executable still running in back evenafter file exit Pin
Prem Kumar14-May-02 19:21
Prem Kumar14-May-02 19:21 
GeneralRe: executable still running in back evenafter file exit Pin
14-May-02 19:40
suss14-May-02 19:40 
GeneralWho can help me to receive letter :) Pin
Cliff14-May-02 17:22
Cliff14-May-02 17:22 
GeneralRe: Who can help me to receive letter :) Pin
Nish Nishant14-May-02 17:31
sitebuilderNish Nishant14-May-02 17:31 
GeneralRe: Who can help me to receive letter :) Pin
Ravi Bhavnani14-May-02 17:26
professionalRavi Bhavnani14-May-02 17:26 
GeneralRe: Who can help me to receive letter :) Pin
Cliff15-May-02 16:04
Cliff15-May-02 16:04 
QuestionMultithread ? Pin
dlhson14-May-02 16:50
dlhson14-May-02 16:50 
AnswerRe: Multithread ? Pin
Nish Nishant14-May-02 17:20
sitebuilderNish Nishant14-May-02 17:20 
AnswerRe: Multithread ? Pin
Larry Antram14-May-02 19:32
Larry Antram14-May-02 19:32 
GeneralCStdioFile Question... Pin
Emearg14-May-02 15:54
Emearg14-May-02 15:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.