Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDocument Types Pin
BlitzPackage18-May-06 7:46
BlitzPackage18-May-06 7:46 
AnswerRe: Document Types Pin
David Crow18-May-06 9:18
David Crow18-May-06 9:18 
GeneralRe: Document Types Pin
BlitzPackage18-May-06 10:07
BlitzPackage18-May-06 10:07 
Questionstdafx Pin
big_denny_20018-May-06 6:59
big_denny_20018-May-06 6:59 
AnswerRe: stdafx Pin
Michael Dunn18-May-06 7:36
sitebuilderMichael Dunn18-May-06 7:36 
AnswerRe: stdafx Pin
knoxplusplus23-May-06 8:05
knoxplusplus23-May-06 8:05 
QuestionMMC-Adding an Item to the context menu of the Results Pane Pin
Stevemc7518-May-06 5:46
Stevemc7518-May-06 5:46 
QuestionCRecordset Timing Problem Pin
e-DJ18-May-06 5:16
e-DJ18-May-06 5:16 
Hi everybody,

I have a small problem with a CRecordset. I open a dialog-box, where I set some values. When I close the dialog-box with OnOK(), I put all the values in an access-mdb using ODBC.
Right after closing my dialog-box, I need the values in the calling function. So I open my recordset again and read all the values. But the last value is missing.
When I debug my application, all values appear. When I add a button, to get the values from my database, all values appear. When the values are to be read immediately after closing my dialog-box, the last value is missing.
So I think, it is some kind of timing problem. That I read from the database, before all records are written. I tried to reopen the database in my dialogbox right after closing it and I close it again. Now all my records are there (at least mostly). But this is not really elegant.
So, is there any possibility, to wait, until the data is really written in the database after closing it, before reopening it again?

Or am I completely wrong and the problem is something else?

Juergen
QuestionCRecordset and CTime Problem Pin
e-DJ18-May-06 5:09
e-DJ18-May-06 5:09 
QuestionRe: CRecordset and CTime Problem Pin
David Crow18-May-06 5:54
David Crow18-May-06 5:54 
QuestionRe: CRecordset and CTime Problem Pin
e-DJ19-May-06 2:57
e-DJ19-May-06 2:57 
AnswerRe: CRecordset and CTime Problem Pin
David Crow19-May-06 3:03
David Crow19-May-06 3:03 
GeneralRe: CRecordset and CTime Problem Pin
e-DJ23-May-06 5:51
e-DJ23-May-06 5:51 
QuestionError not releasing memeory Pin
bujji_bec18-May-06 4:50
bujji_bec18-May-06 4:50 
AnswerRe: Error not releasing memeory Pin
NiceNaidu18-May-06 4:58
NiceNaidu18-May-06 4:58 
AnswerRe: Error not releasing memeory Pin
led mike18-May-06 4:59
led mike18-May-06 4:59 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 5:07
Cedric Moonen18-May-06 5:07 
GeneralRe: Error not releasing memeory Pin
led mike18-May-06 5:46
led mike18-May-06 5:46 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 20:25
Cedric Moonen18-May-06 20:25 
AnswerRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 5:01
Cedric Moonen18-May-06 5:01 
GeneralRe: Error not releasing memeory Pin
Chris Losinger18-May-06 5:10
professionalChris Losinger18-May-06 5:10 
JokeRe: Error not releasing memeory Pin
Roger Stoltz18-May-06 6:17
Roger Stoltz18-May-06 6:17 
GeneralRe: Error not releasing memeory Pin
ThatsAlok18-May-06 19:03
ThatsAlok18-May-06 19:03 
GeneralRe: Error not releasing memeory Pin
led mike18-May-06 5:49
led mike18-May-06 5:49 
GeneralRe: Error not releasing memeory Pin
ThatsAlok18-May-06 19:07
ThatsAlok18-May-06 19:07 

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.