Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listbox and files Pin
Chandrasekharan P1-Apr-08 23:29
Chandrasekharan P1-Apr-08 23:29 
GeneralRe: Listbox and files Pin
Rajkumar R2-Apr-08 0:07
Rajkumar R2-Apr-08 0:07 
GeneralRe: Listbox and files Pin
Chandrasekharan P2-Apr-08 0:33
Chandrasekharan P2-Apr-08 0:33 
GeneralRe: Listbox and files Pin
Rajkumar R2-Apr-08 1:12
Rajkumar R2-Apr-08 1:12 
GeneralRe: Listbox and files Pin
Chandrasekharan P2-Apr-08 1:46
Chandrasekharan P2-Apr-08 1:46 
GeneralRe: Listbox and files Pin
Chandrasekharan P2-Apr-08 1:51
Chandrasekharan P2-Apr-08 1:51 
GeneralRe: Listbox and files Pin
Rajkumar R2-Apr-08 19:05
Rajkumar R2-Apr-08 19:05 
GeneralRe: Listbox and files Pin
Chandrasekharan P2-Apr-08 19:26
Chandrasekharan P2-Apr-08 19:26 
Guess i got a problem here...

i am sending u the code.. please help me in this.

say i have 10 items in the listbox. not if i i click the 4 to the 8th item in the listbox, the first 5 items are displaying the listbox.

<br />
	CArray<int,int> aryListBoxSel;<br />
		int nCount = m_listbox.GetSelCount();<br />
		aryListBoxSel.SetSize(nCount);<br />
		m_listbox.GetSelItems(nCount, aryListBoxSel.GetData());<br />
		<br />
		for(int i=0;i<m_listbox.getselitems(ncount,arylistboxsel.getdata());i++)><br />
		{<br />
			CString str,str2;<br />
			int n;<br />
			//str.Format("%d",m_listbox.GetCurSel());<br />
			n=m_listbox.GetTextLen(i);<br />
			m_listbox.GetText(i,str.GetBuffer(n));<br />
			m_list.AddString(str);<br />
		}<br />
<br />
what is the reason for that?<br />
<br />
<br />
</m_listbox.getselitems(ncount,arylistboxsel.getdata());i++)></int,int>

GeneralRe: Listbox and files Pin
Rajkumar R2-Apr-08 20:44
Rajkumar R2-Apr-08 20:44 
GeneralRe: Listbox and files Pin
Chandrasekharan P2-Apr-08 21:20
Chandrasekharan P2-Apr-08 21:20 
GeneralRe: Listbox and files Pin
Chandrasekharan P3-Apr-08 0:57
Chandrasekharan P3-Apr-08 0:57 
GeneralRe: Listbox and files Pin
Hamid_RT7-Apr-08 3:51
Hamid_RT7-Apr-08 3:51 
Questionwhy use StartService to start a driver service failed? Pin
kcynic1-Apr-08 21:45
kcynic1-Apr-08 21:45 
AnswerRe: why use StartService to start a driver service failed? Pin
Jonathan [Darka]1-Apr-08 23:01
professionalJonathan [Darka]1-Apr-08 23:01 
GeneralRe: why use StartService to start a driver service failed? Pin
kcynic1-Apr-08 23:10
kcynic1-Apr-08 23:10 
GeneralRe: why use StartService to start a driver service failed? Pin
JudyL_MD2-Apr-08 2:00
JudyL_MD2-Apr-08 2:00 
GeneralOLESTR Pin
George_George1-Apr-08 21:26
George_George1-Apr-08 21:26 
GeneralRe: OLESTR Pin
CPallini1-Apr-08 21:52
mveCPallini1-Apr-08 21:52 
GeneralRe: OLESTR Pin
George_George1-Apr-08 22:26
George_George1-Apr-08 22:26 
GeneralRe: OLESTR Pin
CPallini1-Apr-08 22:45
mveCPallini1-Apr-08 22:45 
GeneralRe: OLESTR Pin
George_George1-Apr-08 22:55
George_George1-Apr-08 22:55 
GeneralRe: OLESTR Pin
toxcct1-Apr-08 22:55
toxcct1-Apr-08 22:55 
GeneralRe: OLESTR Pin
George_George1-Apr-08 23:01
George_George1-Apr-08 23:01 
GeneralRe: OLESTR Pin
toxcct1-Apr-08 23:04
toxcct1-Apr-08 23:04 
GeneralRe: OLESTR Pin
George_George1-Apr-08 23:13
George_George1-Apr-08 23:13 

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.