Click here to Skip to main content
16,011,804 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: color Pin
Hamid_RT12-Apr-07 0:03
Hamid_RT12-Apr-07 0:03 
QuestionRegarding Linking error Please Help me. It's a bit urgent Pin
Nikhil Trivedi11-Apr-07 20:16
Nikhil Trivedi11-Apr-07 20:16 
GeneralRe: Regarding Linking error Please Help me. It's a bit urgent Pin
sthotakura11-Apr-07 21:30
sthotakura11-Apr-07 21:30 
QuestionRe: Regarding Linking error Please Help me. It's a bit urgent Pin
Nikhil Trivedi11-Apr-07 21:37
Nikhil Trivedi11-Apr-07 21:37 
GeneralRe: Regarding Linking error Please Help me. It's a bit urgent Pin
sthotakura11-Apr-07 21:50
sthotakura11-Apr-07 21:50 
QuestionSaving text files Pin
cyn811-Apr-07 19:07
cyn811-Apr-07 19:07 
AnswerRe: Saving text files Pin
Arman S.11-Apr-07 19:37
Arman S.11-Apr-07 19:37 
AnswerRe: Saving text files Pin
vimarsh puneet11-Apr-07 19:46
vimarsh puneet11-Apr-07 19:46 
void CfilelistDlg::OnBnClickedCancel()<br />
{<br />
	CString col1,col2;<br />
	CString str,load;<br />
        load="cool.xls";<br />
        CFile myFile1(load, CFile::modeReadWrite);<br />
        CArchive arStore(&myFile1, CArchive::store);<br />
        myFile1.SeekToBegin();<br />
        count=m_ctrlfile.GetItemCount();<br />
	while(count!=0)<br />
	{<br />
		col1=m_ctrlfile.GetItemText(count-1,0);<br />
		col2=m_ctrlfile.GetItemText(count-1,1);<br />
		arStore.WriteString(col1);<br />
		load="\t";<br />
		arStore.WriteString(load);<br />
<br />
		arStore.WriteString(col2);<br />
		load="\n";<br />
		arStore.WriteString(load);<br />
		count--;<br />
	}<br />
	arStore.Close();<br />
	OnCancel();<br />
}

see this article


here an excel file is used you can change it to txt.
as the data is loaded on the list control you can load it on a edit box or on any thing else. And when the user clicks the save button you can load the data again on the file, replacing the previous data
GeneralRe: Saving text files Pin
Hamid_RT11-Apr-07 21:15
Hamid_RT11-Apr-07 21:15 
GeneralRe: Saving text files Pin
vimarsh puneet11-Apr-07 22:36
vimarsh puneet11-Apr-07 22:36 
GeneralRe: Saving text files Pin
Hamid_RT12-Apr-07 0:02
Hamid_RT12-Apr-07 0:02 
QuestionHow to initialize RIL Pin
dishadiv11-Apr-07 18:56
dishadiv11-Apr-07 18:56 
QuestionMust use XmlDocument in managed C++? Pin
nathan711-Apr-07 17:04
nathan711-Apr-07 17:04 
AnswerRe: Must use XmlDocument in managed C++? Pin
Ravi Bhavnani11-Apr-07 17:16
professionalRavi Bhavnani11-Apr-07 17:16 
QuestionMFC and Serialize... How do I attach an icon/schema? Pin
maxmaven11-Apr-07 16:11
maxmaven11-Apr-07 16:11 
QuestionRe: MFC and Serialize... How do I attach an icon/schema? Pin
Ravi Bhavnani11-Apr-07 17:12
professionalRavi Bhavnani11-Apr-07 17:12 
AnswerRe: MFC and Serialize... How do I attach an icon/schema? Pin
maxmaven11-Apr-07 18:20
maxmaven11-Apr-07 18:20 
GeneralRe: MFC and Serialize... How do I attach an icon/schema? Pin
Steve S11-Apr-07 21:27
Steve S11-Apr-07 21:27 
GeneralRe: MFC and Serialize... How do I attach an icon/schema? Pin
maxmaven12-Apr-07 11:05
maxmaven12-Apr-07 11:05 
Questionopengl and tcp/ip Pin
synapticleft11-Apr-07 14:55
synapticleft11-Apr-07 14:55 
AnswerRe: opengl and tcp/ip Pin
El Corazon11-Apr-07 15:18
El Corazon11-Apr-07 15:18 
GeneralRe: opengl and tcp/ip Pin
synapticleft16-Apr-07 13:11
synapticleft16-Apr-07 13:11 
GeneralRe: opengl and tcp/ip Pin
Moak17-Apr-07 0:13
Moak17-Apr-07 0:13 
QuestionIs this a Bug or What? Pin
sanket.patel11-Apr-07 11:37
sanket.patel11-Apr-07 11:37 
AnswerRe: Is this a Bug or What? Pin
sthotakura11-Apr-07 11:47
sthotakura11-Apr-07 11:47 

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.