Hey AF,
Was wondering if anybody can point me in the right direction here.
I am trying to load a listbox, sitting on a dialogbox, with an array of integers... But the darn thing keeps giving me errors.
void CDB2Dlg::OnNEXT()
{
iTIME[iCOUNTER] = GetDlgItemInt( IDC_EDIT1 , NULL, 0 );
iCOUNTER++;
for( int t=0; t<65; t++ )
{
IDC_LIST1.AddItem( IDC_LIST1, iTIME[t] );
//IDD_DB2_DIALOG.IDC_LIST1.ItemData(iTIME[t]);
//IDD_DB2_DIALOG.IDC_LIST1.ControlSource = iTIME[t];
}
//if( iTIME[iCOUNTER] == 8 )
// DestroyWindow( );
}
On the push of the 'OnNEXT' button i want the LISTBOX to fill with the values, but I do not know of this class/struct/union it speaks of?
Can YOU help me?