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

C / C++ / MFC

 
GeneralRe: pragma once Pin
User 988514-Apr-03 5:17
User 988514-Apr-03 5:17 
GeneralRe: pragma once Pin
Joaquín M López Muñoz14-Apr-03 5:22
Joaquín M López Muñoz14-Apr-03 5:22 
GeneralThanks! Pin
ns14-Apr-03 6:13
ns14-Apr-03 6:13 
GeneralRemote debugging a C++ app Pin
Navin14-Apr-03 5:05
Navin14-Apr-03 5:05 
Generaldynamic_cast and static_cast Pin
User 988514-Apr-03 5:05
User 988514-Apr-03 5:05 
GeneralRe: dynamic_cast and static_cast Pin
Joaquín M López Muñoz14-Apr-03 5:26
Joaquín M López Muñoz14-Apr-03 5:26 
GeneralRe: dynamic_cast and static_cast Pin
User 988514-Apr-03 5:31
User 988514-Apr-03 5:31 
QuestionMSAccess BatchUpdate throw ADO ? Pin
rosen14-Apr-03 3:58
rosen14-Apr-03 3:58 
Hello.
Does MS Access support BatchUpdates?
I have a project in which im using following code but it gives me an error when there is
more than 2 records in the recordset which have been changed

IDispatch error # 3156 :Number of rows with pending changes exceeds the limit.

<br />
//////////<br />
		_variant_t	v(m_pProject->m_ptrConnection.GetInterfacePtr());<br />
		<br />
		//	Open recordset<br />
		m_pRstBugs->CursorType = adOpenKeyset;<br />
      		m_pRstBugs->LockType = adLockBatchOptimistic;<br />
		m_pRstBugs->Open((LPCTSTR)ProjectName, v,<br />
			adOpenKeyset,adLockBatchOptimistic,adCmdTableDirect);<br />
		<br />
		if (m_pRstBugs->Supports(adIndex) && m_pRstBugs->Supports(adSeek))<br />
		{<br />
			// im making an index<br />
			m_pRstBugs->Index = DBtags::m_sProjectIndexName;<br />
		}<br />
		// ...<br />
		<br />
		<br />
		// here is the problem: Error -> "Number of rows with pending changes exceeds the limit."<br />
		m_pRstBugs->MoveFirst();<br />
		while(!m_pRstBugs->adoEOF)<br />
		{<br />
			_variant_t	x("test");<br />
			m_pRstBugs->Fields->Item["description"]->Value = x;<br />
			m_pRstBugs->MoveNext();<br />
		}<br />
		m_pRstBugs->UpdateBatch(adAffectAll);<br />
		//	end test<br />
		<br />

AnswerRe: MSAccess BatchUpdate throw ADO ? Pin
Dave Kreskowiak14-Apr-03 5:05
mveDave Kreskowiak14-Apr-03 5:05 
GeneralEnumerate and Disconnect LAN Pin
Ceri14-Apr-03 3:21
Ceri14-Apr-03 3:21 
GeneralCStdioFile and Seek-Method Pin
tabor2514-Apr-03 3:09
tabor2514-Apr-03 3:09 
GeneralRe: CStdioFile and Seek-Method Pin
valikac14-Apr-03 7:46
valikac14-Apr-03 7:46 
GeneralRe: CStdioFile and Seek-Method Pin
tabor2514-Apr-03 20:06
tabor2514-Apr-03 20:06 
QuestionHow do you move a window without showing it? Pin
Abin14-Apr-03 3:04
Abin14-Apr-03 3:04 
AnswerRe: How do you move a window without showing it? Pin
Rage14-Apr-03 6:01
professionalRage14-Apr-03 6:01 
Generalwon't work Pin
Abin14-Apr-03 13:36
Abin14-Apr-03 13:36 
GeneralVisual studio Add-In Pin
Rage14-Apr-03 2:48
professionalRage14-Apr-03 2:48 
GeneralRe: Visual studio Add-In Pin
Zdeslav Vojkovic14-Apr-03 4:03
Zdeslav Vojkovic14-Apr-03 4:03 
GeneralLooking for graphing components Pin
Anonymous14-Apr-03 2:39
Anonymous14-Apr-03 2:39 
QuestionHow to make a multiline cell in MFCGridctrl Pin
Bilal Akram14-Apr-03 2:35
Bilal Akram14-Apr-03 2:35 
AnswerRe: How to make a multiline cell in MFCGridctrl Pin
cr9714-Apr-03 3:54
cr9714-Apr-03 3:54 
GeneralRe: How to make a multiline cell in MFCGridctrl Pin
Bilal Akram14-Apr-03 4:25
Bilal Akram14-Apr-03 4:25 
GeneralRe: How to make a multiline cell in MFCGridctrl Pin
cr9714-Apr-03 22:06
cr9714-Apr-03 22:06 
GeneralRe: How to make a multiline cell in MFCGridctrl Pin
Bilal Akram15-Apr-03 22:51
Bilal Akram15-Apr-03 22:51 
GeneralRe: How to make a multiline cell in MFCGridctrl Pin
cr9716-Apr-03 4:06
cr9716-Apr-03 4:06 

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.