Click here to Skip to main content
15,913,396 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow use RUNTIME_CLASS for CDateTimeCtrl ?? Pin
Thierry Maurel10-Jun-03 21:36
Thierry Maurel10-Jun-03 21:36 
AnswerRe: How use RUNTIME_CLASS for CDateTimeCtrl ?? Pin
Neville Franks10-Jun-03 22:33
Neville Franks10-Jun-03 22:33 
GeneralRe: How use RUNTIME_CLASS for CDateTimeCtrl ?? Pin
Thierry Maurel10-Jun-03 22:40
Thierry Maurel10-Jun-03 22:40 
Generalposition of dialog box Pin
chris!10-Jun-03 18:40
chris!10-Jun-03 18:40 
GeneralRe: position of dialog box Pin
valikac10-Jun-03 19:23
valikac10-Jun-03 19:23 
GeneralRe: position of dialog box Pin
Majid Shahabfar10-Jun-03 19:51
Majid Shahabfar10-Jun-03 19:51 
QuestionHow to cancel the CADORecordset.AddNew() action Pin
winnew10-Jun-03 18:34
winnew10-Jun-03 18:34 
AnswerRe: How to cancel the CADORecordset.AddNew() action Pin
Toni7810-Jun-03 18:49
Toni7810-Jun-03 18:49 
If you are not in batch mode then you can't cancel it (undo your operation). You have to delete it.

m_rs.MoveLast();
m_rs.Delete( adAffectCurrent );

In batch mode you can just use CancelUpdate, or RollbackTransmission(). Now, I am not quite sure about the names of these last two functions, because I haven't used them extensively, but look at the ado recordset functions to figure out their actual names and syntaxes are.

By the way, why do you want to cancel AddNew()? Is it because of an error? Because if you have an error, then you can simply call m_rs.CancelUpdate().

// Afterall I realized that even my comment lines have bugs
QuestionHow to cancel the CADORecordset.AddNew() action Pin
winnew10-Jun-03 18:33
winnew10-Jun-03 18:33 
QuestionHow Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:11
Member 40481310-Jun-03 18:11 
AnswerRe: How Do i monitor if a key has been depressed? Pin
Ryan Binns10-Jun-03 18:19
Ryan Binns10-Jun-03 18:19 
GeneralRe: How Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:26
Member 40481310-Jun-03 18:26 
GeneralRe: How Do i monitor if a key has been depressed? Pin
Ryan Binns10-Jun-03 18:31
Ryan Binns10-Jun-03 18:31 
GeneralRe: How Do i monitor if a key has been depressed? Pin
Member 40481310-Jun-03 18:33
Member 40481310-Jun-03 18:33 
Generalwordxp table Pin
Fool's Garden10-Jun-03 18:05
Fool's Garden10-Jun-03 18:05 
GeneralRe: wordxp table Pin
Larry J. Siddens11-Jun-03 9:44
Larry J. Siddens11-Jun-03 9:44 
Questionhow to operate a control of a parent class? Pin
Anonymous10-Jun-03 17:46
Anonymous10-Jun-03 17:46 
AnswerRe: how to operate a control of a parent class? Pin
valikac10-Jun-03 19:24
valikac10-Jun-03 19:24 
GeneralC++ DLL Pin
vbtester10-Jun-03 17:21
vbtester10-Jun-03 17:21 
GeneralRe: C++ DLL Pin
valikac10-Jun-03 19:27
valikac10-Jun-03 19:27 
GeneralRe: C++ DLL Pin
basementman11-Jun-03 4:10
basementman11-Jun-03 4:10 
GeneralRe: C++ DLL Pin
vbtester11-Jun-03 5:02
vbtester11-Jun-03 5:02 
GeneralRe: C++ DLL Pin
vbtester12-Jun-03 7:08
vbtester12-Jun-03 7:08 
GeneralProblem with multiple processes listening on the same UDP port Pin
Taka Muraoka10-Jun-03 15:49
Taka Muraoka10-Jun-03 15:49 
GeneralRe: Problem with multiple processes listening on the same UDP port Pin
Ryan Binns10-Jun-03 18:18
Ryan Binns10-Jun-03 18:18 

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.