Hi all,
I am using ODBC for my program. I want to specify a filter for the records in my MS access database. When my code for performing teh filter is as follows:
m_ParticipantSet->m_strFilter = "PartName = '" +
dlg.m_PartName + "'"...
Dear all,
I m trying to retrieve a value Timing1 from a dialog box named CTimeDlg to my CMainFrame. The code that I use is as follows:
CTimeDlg Timedlg;
CTime STime = Timedlg.Timing1;
CTime Now = CTime::GetCurentTime();
CTimeSpan Interval = Now - STime;
CString Timing =...
Dear all,
I have declared a CTime object as CTime Timing. I believe this is timing in seconds. I later convert it to a CString object using Timing.format("%H:%M:%S") This gives the timing in terms of Hours : Minutes : Seconds
I then store it in a daatbase. I wish to extract this...
Hi all,
I am facing a problem for my program. Basically I intend to update my database each time an event occurs. However I want to eliminate redundant records as in if a particular identity is already in my record for today, it must not appear again. Ut is ok if it appears tomorrow since the...
Hi all,
I encountered the following problem. Code looks ok but and no errors when I compile. But when I activate the function an error is generated saying that attempt to update or delete failed. The code is as follows:
Timing1 = CTime::GetCurrentTime();
if( m_pCapturedResults.IsOpen() ==...
Hi all,
I am facing a problem. How do u fill a combobox with data from my database? I am looking to fill all the participants name in a race into a combo box. Then when I select the participant's name, all his particulars will also be displayed. I am using dialog for this. So do I put the code...
Hi,
I am a relatively new MFC programmer and I have the following problem. In adding a second recordset to my dialog box, I want to add a combo box to list the names of all that is contained in my database. I used the following code
m_pSet = &GetDocument()->m_viewrecordSet;
m_pSet->m_pDatabase...
Hi,
I am a new user in Visual C++ 6.0.Using MFC, I created a single document application. From the application I wish to click a button to open a dialog box. The following is the code I used:
void CTest1Doc::OnButton1()
{
TestDlg testdlg;
int result = testdlg.DoModal():
}
It seems that it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.