Click here to Skip to main content
15,894,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile::Remove fails Pin
Mike Osbahr20-May-10 6:42
Mike Osbahr20-May-10 6:42 
GeneralRe: CFile::Remove fails Pin
jeron120-May-10 6:48
jeron120-May-10 6:48 
GeneralRe: CFile::Remove fails Pin
Mike Osbahr20-May-10 7:12
Mike Osbahr20-May-10 7:12 
QuestionRe: CFile::Remove fails Pin
David Crow20-May-10 6:56
David Crow20-May-10 6:56 
AnswerRe: CFile::Remove fails Pin
Mike Osbahr20-May-10 7:20
Mike Osbahr20-May-10 7:20 
QuestionRe: CFile::Remove fails Pin
David Crow20-May-10 7:37
David Crow20-May-10 7:37 
AnswerRe: CFile::Remove fails Pin
Mike Osbahr20-May-10 7:58
Mike Osbahr20-May-10 7:58 
QuestionRe: CFile::Remove fails Pin
David Crow20-May-10 6:18
David Crow20-May-10 6:18 
AnswerRe: CFile::Remove fails Pin
Luc Pattyn20-May-10 9:18
sitebuilderLuc Pattyn20-May-10 9:18 
GeneralRe: CFile::Remove fails Pin
Mike Osbahr25-May-10 4:54
Mike Osbahr25-May-10 4:54 
QuestionIn-place "conversion" of a string literal into a named object Pin
Code-o-mat20-May-10 4:07
Code-o-mat20-May-10 4:07 
QuestionRe: In-place "conversion" of a string literal into a named object Pin
CPallini20-May-10 11:41
mveCPallini20-May-10 11:41 
AnswerRe: In-place "conversion" of a string literal into a named object Pin
Stephen Hewitt20-May-10 14:13
Stephen Hewitt20-May-10 14:13 
AnswerRe: In-place "conversion" of a string literal into a named object Pin
Code-o-mat20-May-10 21:56
Code-o-mat20-May-10 21:56 
QuestionCalling a function directly via VTable. Pin
Green Fuze20-May-10 3:32
Green Fuze20-May-10 3:32 
AnswerRe: Calling a function directly via VTable. Pin
Aescleal20-May-10 3:45
Aescleal20-May-10 3:45 
GeneralRe: Calling a function directly via VTable. Pin
Chris Meech20-May-10 4:19
Chris Meech20-May-10 4:19 
GeneralRe: Calling a function directly via VTable. Pin
Green Fuze20-May-10 6:09
Green Fuze20-May-10 6:09 
GeneralRe: Calling a function directly via VTable. Pin
Aescleal20-May-10 12:32
Aescleal20-May-10 12:32 
QuestionCreate a custom Setup tool to instal other setup programs. (hooking involved.) Pin
Natural_Demon20-May-10 3:24
Natural_Demon20-May-10 3:24 
QuestionCListCtrl Pin
Sakhalean20-May-10 2:52
Sakhalean20-May-10 2:52 
AnswerRe: CListCtrl Pin
CPallini20-May-10 3:02
mveCPallini20-May-10 3:02 
GeneralRe: CListCtrl Pin
Sakhalean20-May-10 3:38
Sakhalean20-May-10 3:38 
Hi,

Here m_ListInfoCtrl is a varible for CListCtrl
ie dialog listcontrol and a dialog variable

while( !m_pFrame->m_DbMgr.m_Rs.IsEof() )
{
m_pFrame->m_DbMgr.m_Rs.GetFieldValue( "LruIndex", nLruIndex );
strTemp.Format( "%d", nLruIndex );
m_pFrame->m_nLruIndex = nLruIndex;
m_ListInfoCtrl.InsertItem( nLruIndex-1, strTemp );

//---- LRU Name ------------
m_pFrame->m_DbMgr.m_Rs.GetFieldValue( "LruName",strLruName );
m_ListInfoCtrl.SetItemText( nLruIndex-1, 1, strLruName );



//----- MIl Bus ----------------
m_pFrame->m_DbMgr.m_Rs.GetFieldValue( "MilBus", strTemp );
strTemp.Insert( 0, " " );
m_ListInfoCtrl.SetItemText( nLruIndex-1, 3, strTemp );

m_pFrame->m_DbMgr.m_Rs.MoveNext();
}
}catch( CADOException& e )
{
strSql = "CSIRBaseView::UpdateListControl():GetFieldValue "+e.GetErrorMessage();
MessageBox( strSql );
}return FALSE;

Here firt two columns are coming ie LRUIndex and LRUName

but the third column MilBus is not displaying the value.
GeneralRe: CListCtrl Pin
josda100020-May-10 9:29
josda100020-May-10 9:29 
GeneralRe: CListCtrl Pin
Sakhalean21-May-10 2:41
Sakhalean21-May-10 2:41 

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.