Click here to Skip to main content
15,881,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
Stefan_Lang8-Aug-18 22:07
Stefan_Lang8-Aug-18 22:07 
QuestionRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
David Crow9-Aug-18 4:55
David Crow9-Aug-18 4:55 
AnswerRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
CPallini9-Aug-18 10:38
mveCPallini9-Aug-18 10:38 
QuestionMovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5797-Aug-18 20:19
Sampath5797-Aug-18 20:19 
AnswerRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt7-Aug-18 21:52
professionalJochen Arndt7-Aug-18 21:52 
GeneralRe: MovePrev() throwing -2147217837 error code Pin
Sampath5797-Aug-18 22:23
Sampath5797-Aug-18 22:23 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt7-Aug-18 23:26
professionalJochen Arndt7-Aug-18 23:26 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5798-Aug-18 0:01
Sampath5798-Aug-18 0:01 
That was just an example i have given but not the exact requirement. But at any cost i want to perform this MovePrev() operation once at the end for my project requirement. But some how its failing (returning error code) even after setting the property on CBPropSet.


CDBPropSet	cdbPropset(DBPROPSET_ROWSET);
cdbPropset.AddProperty(DBPROP_CANSCROLLBACKWARDS, true);

CCommand <CAccessor<CLabelsAccessor>,CRowset> cCommand;
hr = cCommand.Open(m_Session, csSQLQuery, &cdbPropset);
if( SUCCEEDED( hr ) )
{
 hr = cCommand.MoveFirst();

for(int i = 0; i < 3; i++)
{
 cCommand.m_labelvalueindex	= 1; 
 cCommand.m_labellinenumber	= 2; 

 hr = cCommand.Insert();
 hr = cCommand.MoveNext();
}
//Here i want to perform moveprev().
cCommand.Close();
}


After the for loop i just want to perform Moveprev(). Can you tell me any wrong in above code.?
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt8-Aug-18 0:29
professionalJochen Arndt8-Aug-18 0:29 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5798-Aug-18 3:19
Sampath5798-Aug-18 3:19 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt8-Aug-18 3:21
professionalJochen Arndt8-Aug-18 3:21 
GeneralRe: MovePrev() throwing -2147217837 error code. Pin
Sampath57912-Aug-18 1:36
Sampath57912-Aug-18 1:36 
QuestionRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
David Crow8-Aug-18 4:45
David Crow8-Aug-18 4:45 
AnswerRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5798-Aug-18 5:16
Sampath5798-Aug-18 5:16 
QuestionRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
David Crow9-Aug-18 4:56
David Crow9-Aug-18 4:56 
AnswerRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Stefan_Lang8-Aug-18 21:44
Stefan_Lang8-Aug-18 21:44 
GeneralRe: MovePrev() throwing -2147217837 error code Pin
Sampath57912-Aug-18 5:29
Sampath57912-Aug-18 5:29 
QuestionMFC Icon indicator (red/green) Pin
Maximilien6-Aug-18 7:20
Maximilien6-Aug-18 7:20 
AnswerRe: MFC Icon indicator (red/green) Pin
Victor Nijegorodov6-Aug-18 8:04
Victor Nijegorodov6-Aug-18 8:04 
AnswerRe: MFC Icon indicator (red/green) Pin
_Flaviu6-Aug-18 19:55
_Flaviu6-Aug-18 19:55 
QuestionFind element at given index after a number of rotations Pin
Tarun Jha5-Aug-18 10:16
Tarun Jha5-Aug-18 10:16 
QuestionRe: Find element at given index after a number of rotations Pin
David Crow5-Aug-18 12:39
David Crow5-Aug-18 12:39 
AnswerRe: Find element at given index after a number of rotations Pin
Tarun Jha5-Aug-18 22:21
Tarun Jha5-Aug-18 22:21 
AnswerRe: Find element at given index after a number of rotations Pin
CPallini5-Aug-18 20:43
mveCPallini5-Aug-18 20:43 
GeneralRe: Find element at given index after a number of rotations Pin
Tarun Jha5-Aug-18 22:21
Tarun Jha5-Aug-18 22:21 

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.