Click here to Skip to main content
16,005,241 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Default browser Pin
Stephane Rodriguez.18-Oct-02 20:28
Stephane Rodriguez.18-Oct-02 20:28 
GeneralRe: Default browser Pin
Giles19-Oct-02 2:46
Giles19-Oct-02 2:46 
GeneralMaximizing a MFC Single Doc Program Pin
Brad Jennings18-Oct-02 18:33
Brad Jennings18-Oct-02 18:33 
GeneralRe: Maximizing a MFC Single Doc Program Pin
Scott H. Settlemier18-Oct-02 19:06
Scott H. Settlemier18-Oct-02 19:06 
GeneralRe: Maximizing a MFC Single Doc Program Pin
Brad Jennings18-Oct-02 19:42
Brad Jennings18-Oct-02 19:42 
GeneralMinimize dialog box on start up. Pin
CL Loo18-Oct-02 15:30
sussCL Loo18-Oct-02 15:30 
GeneralRe: Minimize dialog box on start up. Pin
Chris Losinger18-Oct-02 16:51
professionalChris Losinger18-Oct-02 16:51 
GeneralUpdate (ADO) problem Pin
nss18-Oct-02 15:00
nss18-Oct-02 15:00 
It crashes at the update().I checked to see that there was valid data in in the fields after being assigned.
	while (!m_db1.m_pRecordset->GetadoEOF ())
	{


		m_db3.Open(DatabaseName3); 

		int n = m_db3.m_pRecordset->RecordCount;
		
		m_db3.m_pRecordset->AddNew();

		std::set<CString>::iterator itA = m_set3.begin();

		for(; itA != m_set3.end(); itA++)
		{
			tempStr = *itA;



			char* fldIt1 = new char [tempStr.GetLength() + 1];  
			strcpy(fldIt1, tempStr);
	////////////////////////////////////////////////////////////////////////////


			CString strTemp((char*)(_bstr_t)(m_db1.m_pRecordset->Fields->Item[fldIt1]->Value));

//			CString dummy = strTemp;

			m_db3.m_pRecordset->Fields->Item[fldIt1]->Value = m_db1.m_pRecordset->Fields->Item[fldIt1]->Value;
;

			delete[] fldIt1;

		}
	 m_db1.m_pRecordset->MoveNext();
	 m_db3.m_pRecordset->Update();


	 m_db3.m_pRecordset->Close();

	 m_db3.m_pRecordset = NULL;

	 m_db3.Close();
   }

GeneralRe: Update (ADO) problem Pin
Giles19-Oct-02 4:39
Giles19-Oct-02 4:39 
GeneralRe: Update (ADO) problem Pin
nss19-Oct-02 4:52
nss19-Oct-02 4:52 
GeneralRe: Update (ADO) problem Pin
Giles19-Oct-02 5:10
Giles19-Oct-02 5:10 
GeneralRe: Update (ADO) problem Pin
nss19-Oct-02 5:32
nss19-Oct-02 5:32 
GeneralHWND to CWnd* Pin
Anonymous18-Oct-02 12:50
Anonymous18-Oct-02 12:50 
GeneralRe: HWND to CWnd* Pin
Michael Dunn18-Oct-02 13:14
sitebuilderMichael Dunn18-Oct-02 13:14 
GeneralRe: HWND to CWnd* Pin
User 665818-Oct-02 13:15
User 665818-Oct-02 13:15 
GeneralRe: HWND to CWnd* Pin
Anonymous18-Oct-02 13:19
Anonymous18-Oct-02 13:19 
GeneralRe: HWND to CWnd* Pin
User 665818-Oct-02 13:28
User 665818-Oct-02 13:28 
GeneralRe: HWND to CWnd* Pin
Anonymous18-Oct-02 13:33
Anonymous18-Oct-02 13:33 
GeneralRe: HWND to CWnd* Pin
Chris Losinger18-Oct-02 16:52
professionalChris Losinger18-Oct-02 16:52 
GeneralRe: HWND to CWnd* Pin
Scott H. Settlemier18-Oct-02 18:51
Scott H. Settlemier18-Oct-02 18:51 
General10x Pin
Anonymous19-Oct-02 4:15
Anonymous19-Oct-02 4:15 
GeneralRe: HWND to CWnd* Pin
Christian Graus18-Oct-02 17:28
protectorChristian Graus18-Oct-02 17:28 
GeneralRe: HWND to CWnd* Pin
Anonymous19-Oct-02 4:16
Anonymous19-Oct-02 4:16 
GeneralBitmap in CEdit Pin
SatyaKiran18-Oct-02 12:26
SatyaKiran18-Oct-02 12:26 
GeneralRe: Bitmap in CEdit Pin
Hans Ruck19-Oct-02 0:55
Hans Ruck19-Oct-02 0:55 

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.