Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: popup dialog using tab controls Pin
SandipG 13-Jul-08 21:02
SandipG 13-Jul-08 21:02 
GeneralRe: popup dialog using tab controls Pin
Mark Salsbery14-Jul-08 6:28
Mark Salsbery14-Jul-08 6:28 
QuestionWhat is the correct method to rename a VC6.0 project? Pin
fantasy121513-Jul-08 19:47
fantasy121513-Jul-08 19:47 
AnswerRe: What is the correct method to rename a VC6.0 project? Pin
sudhir_Kumar13-Jul-08 19:52
sudhir_Kumar13-Jul-08 19:52 
GeneralRe: What is the correct method to rename a VC6.0 project? Pin
fantasy121513-Jul-08 20:26
fantasy121513-Jul-08 20:26 
GeneralRe: What is the correct method to rename a VC6.0 project? Pin
sudhir_Kumar13-Jul-08 20:30
sudhir_Kumar13-Jul-08 20:30 
AnswerRe: What is the correct method to rename a VC6.0 project? Pin
ThatsAlok13-Jul-08 20:12
ThatsAlok13-Jul-08 20:12 
Questioncombo box help Pin
projectip13-Jul-08 19:40
projectip13-Jul-08 19:40 
I have cleared some doubts regarding combo box in one of my earlier threads.Had got the solution too.I have a new problem..
I have two dialogs as I told before.there is a combo box in the first dialog.i have a text box in the second dialog.when i click a button, i get the second dialog in which the text box is present.i get the data in the text box in the combo box when i click the ok button .have written code for that.my problem is , i have to see all the data that i enter in the text box in the second dialog into the combo box in first dialog.now what happens is, i can only see the last entered item.i have written it i the OnOK function ,but have commented CDialog::OnOk();
I need to enter details as long as i want and see them all in the first combo box. what to do?
Code in second dialog:
CString i;<br />
	fstream f;<br />
	f.open("C:\\myfile.txt",ios::app);	<br />
	printf("\n");<br />
<br />
		GetDlgItemText(IDC_EDIT2,str_name);<br />
		f.write(str_name.GetBuffer(str_name.GetLength()),str_name.GetLength()); <br />
	f<<endl;<br />
	<br />
	m_combo.AddString(str_name);	<br />
	<br />
		m_edit3.SetWindowText(_T(""));<br />
	f.close();

in first dialog:
Add cd;<br />
	cd.DoModal();<br />
<br />
	m_selcam.AddString(cd.str_name);

AnswerRe: combo box help Pin
projectip13-Jul-08 20:37
projectip13-Jul-08 20:37 
AnswerRe: combo box help Pin
SandipG 13-Jul-08 20:50
SandipG 13-Jul-08 20:50 
GeneralRe: combo box help Pin
projectip14-Jul-08 0:57
projectip14-Jul-08 0:57 
QuestionCreating enteries in add or remove programs Pin
VCProgrammer13-Jul-08 19:39
VCProgrammer13-Jul-08 19:39 
AnswerRe: Creating enteries in add or remove programs Pin
ThatsAlok13-Jul-08 20:15
ThatsAlok13-Jul-08 20:15 
Questioni want to know ACM problom's answer or tip. Pin
Jung Seng Won13-Jul-08 19:33
Jung Seng Won13-Jul-08 19:33 
AnswerRe: i want to know ACM problom's answer or tip. Pin
Alan Balkany14-Jul-08 5:09
Alan Balkany14-Jul-08 5:09 
QuestionAdvantages of ShellExecuteEx over CreateProcess Pin
V K 213-Jul-08 19:17
V K 213-Jul-08 19:17 
AnswerRe: Advantages of ShellExecuteEx over CreateProcess Pin
Naveen13-Jul-08 19:35
Naveen13-Jul-08 19:35 
AnswerRe: Advantages of ShellExecuteEx over CreateProcess Pin
DownUnderDev13-Jul-08 19:39
DownUnderDev13-Jul-08 19:39 
AnswerRe: Advantages of ShellExecuteEx over CreateProcess Pin
CPallini13-Jul-08 21:00
mveCPallini13-Jul-08 21:00 
QuestionHelp with an unicode String returned by DeviceIoControl Pin
gabbana13-Jul-08 9:49
gabbana13-Jul-08 9:49 
AnswerRe: Help with an unicode String returned by DeviceIoControl Pin
Mark Salsbery13-Jul-08 10:08
Mark Salsbery13-Jul-08 10:08 
GeneralRe: Help with an unicode String returned by DeviceIoControl Pin
gabbana13-Jul-08 10:16
gabbana13-Jul-08 10:16 
GeneralRe: Help with an unicode String returned by DeviceIoControl Pin
Mark Salsbery13-Jul-08 13:40
Mark Salsbery13-Jul-08 13:40 
GeneralRe: Help with an unicode String returned by DeviceIoControl Pin
gabbana13-Jul-08 23:01
gabbana13-Jul-08 23:01 
GeneralRe: Help with an unicode String returned by DeviceIoControl Pin
gabbana13-Jul-08 23:22
gabbana13-Jul-08 23:22 

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.