Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOleDB programming Pin
정인보18-Feb-04 14:54
정인보18-Feb-04 14:54 
GeneralRe: OleDB programming Pin
Steve S19-Feb-04 7:34
Steve S19-Feb-04 7:34 
GeneralSending output to an arbitrary console window Pin
ddellis18-Feb-04 13:47
ddellis18-Feb-04 13:47 
GeneralRe: Sending output to an arbitrary console window Pin
valikac18-Feb-04 14:34
valikac18-Feb-04 14:34 
GeneralClickety Police Pin
John M. Drescher18-Feb-04 16:45
John M. Drescher18-Feb-04 16:45 
GeneralMDI - Access to Doc From MainFrame Pin
jerry1211a18-Feb-04 13:23
jerry1211a18-Feb-04 13:23 
GeneralRe: MDI - Access to Doc From MainFrame Pin
krithika_Ramanujam18-Feb-04 19:28
krithika_Ramanujam18-Feb-04 19:28 
GeneralSetFieldDirty Question Pin
ElizabethC18-Feb-04 12:59
ElizabethC18-Feb-04 12:59 
I am having problem setting a dirty flag to a record (CRecordset). I am adding controls to the interface so that no updating to the database is allowed if the form has already been approved. So I did something like the code below. However, I always get the dialog saying "field is still dirty, do not know why". I am not expecting to see this dialog.

m_pSet->Edit();
m_pSet->UpdateData(TRUE);
if (m_pSet->IsFieldDirty(NULL))
{
If (m_pSet->m_is_approved == "1")
{
//reset the dirty flag
m_pSet->SetFieldDirty(NULL, FALSE);
AfxMessageBox("no updating is allowed on an approved application.");
if (m_pSet->IsFieldDirty(NULL) )
{
AfxMessageBox("field is still dirty, do not know why");
}
}
}
m_pSet->Update();




Elizabeth
GeneralVariables in my own dialog box Pin
satcat18-Feb-04 12:56
satcat18-Feb-04 12:56 
GeneralRe: Variables in my own dialog box Pin
Prakash Nadar18-Feb-04 13:18
Prakash Nadar18-Feb-04 13:18 
GeneralRe: Variables in my own dialog box Pin
satcat18-Feb-04 13:56
satcat18-Feb-04 13:56 
Generalstd::allocator inheritance problem (please help) Pin
Jon McClure18-Feb-04 12:02
Jon McClure18-Feb-04 12:02 
GeneralRe: std::allocator inheritance problem (please help) Pin
Andrew Walker19-Feb-04 0:17
Andrew Walker19-Feb-04 0:17 
GeneralMessage Removed Pin
18-Feb-04 9:16
sussBryn Aspestrand18-Feb-04 9:16 
Generalcout behavior........ Pin
ns18-Feb-04 8:47
ns18-Feb-04 8:47 
GeneralRe: cout behavior........ Pin
Ravi Bhavnani18-Feb-04 8:58
professionalRavi Bhavnani18-Feb-04 8:58 
GeneralRe: cout behavior........ Pin
ns18-Feb-04 9:15
ns18-Feb-04 9:15 
GeneralRe: cout behavior........ Pin
Maximilien18-Feb-04 9:59
Maximilien18-Feb-04 9:59 
Generaloops! Pin
nss18-Feb-04 14:40
nss18-Feb-04 14:40 
GeneralRe: cout behavior........ Pin
Robert A. T. Káldy18-Feb-04 11:43
Robert A. T. Káldy18-Feb-04 11:43 
GeneralCombo Box Pin
DougW4818-Feb-04 8:40
DougW4818-Feb-04 8:40 
GeneralRe: Combo Box Pin
Ravi Bhavnani18-Feb-04 8:57
professionalRavi Bhavnani18-Feb-04 8:57 
GeneralRe: dialog mfc app Pin
David Crow18-Feb-04 5:58
David Crow18-Feb-04 5:58 
GeneralRe: dialog mfc app Pin
Irish_GUI18-Feb-04 6:52
Irish_GUI18-Feb-04 6:52 
GeneralRe: dialog mfc app Pin
David Crow18-Feb-04 7:00
David Crow18-Feb-04 7:00 

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.