Click here to Skip to main content
15,561,290 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 2:01
mveRichard MacCutchan25-Mar-17 2:01 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
arnold_w25-Mar-17 2:33
arnold_w25-Mar-17 2:33 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
Richard MacCutchan25-Mar-17 2:42
mveRichard MacCutchan25-Mar-17 2:42 
AnswerRe: Get struct-members' names in Visual Studio console application? Pin
Richard Andrew x6425-Mar-17 2:01
professionalRichard Andrew x6425-Mar-17 2:01 
AnswerRe: Get struct-members' names in Visual Studio console application? Pin
Randor 21-Apr-17 18:40
professional Randor 21-Apr-17 18:40 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
arnold_w21-Apr-17 23:55
arnold_w21-Apr-17 23:55 
GeneralRe: Get struct-members' names in Visual Studio console application? Pin
Randor 25-Apr-17 13:11
professional Randor 25-Apr-17 13:11 
QuestionText editor in vc++ Pin
lolici13-Mar-17 2:04
lolici13-Mar-17 2:04 
Hi everyone!
I need to "send" data in a notepad every time I write double numbers on edit control and press save. I wrote some code but my dialog (where the edit control is) don't even open when I run the executable. What I've done so far:
void CDataDialog::OnBnClickedSave()
{
	// TODO: Add your control notification handler code here
	CFileDialog dlg(FALSE, L"Text Files (*.txt)|*.txt|Texr Files (*.h)|*.h|", NULL, OFN_OVERWRITEPROMPT, L"Text Files (*.txt)|*.txt|Text Files (*.h)|*.h|");

	CStdioFile file;

	CString buffer;
	CString textfile;

	if (dlg.DoModal() == IDOK)
	{
		file.Open(dlg.GetFileName(), CStdioFile::modeCreate | CStdioFile::modeWrite);
		dlg.GetFileName();

		file.WriteString(buffer);

		file.Close();
	}

}


void CDataDialog::OnEnChangeEdit1()
{
	// TODO:  If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.

	// TODO:  Add your control notification handler code here
	UpdateData(TRUE);
}

I think I must write some code here so the dialog box work fine but I can't it.

void CInputView::OnLinefeaturesData()
{
	// TODO: Add your command handler code here
	CInputDoc* pDoc = GetDocument();
	CDataDialog DialogWindow;
}

AnswerRe: Text editor in vc++ Pin
Jochen Arndt13-Mar-17 3:24
professionalJochen Arndt13-Mar-17 3:24 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 3:42
lolici13-Mar-17 3:42 
GeneralRe: Text editor in vc++ Pin
Jochen Arndt13-Mar-17 3:53
professionalJochen Arndt13-Mar-17 3:53 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 4:15
lolici13-Mar-17 4:15 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 4:29
lolici13-Mar-17 4:29 
GeneralRe: Text editor in vc++ Pin
Jochen Arndt13-Mar-17 4:47
professionalJochen Arndt13-Mar-17 4:47 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 5:07
lolici13-Mar-17 5:07 
QuestionHow to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 4:14
lolici9-Mar-17 4:14 
AnswerRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 6:22
mveRichard MacCutchan9-Mar-17 6:22 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 6:51
lolici9-Mar-17 6:51 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 7:07
mveRichard MacCutchan9-Mar-17 7:07 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 7:54
lolici9-Mar-17 7:54 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 9:23
mveRichard MacCutchan9-Mar-17 9:23 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici10-Mar-17 5:29
lolici10-Mar-17 5:29 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan10-Mar-17 5:38
mveRichard MacCutchan10-Mar-17 5:38 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
ThatsAlok11-May-17 21:51
ThatsAlok11-May-17 21:51 
QuestionSTL std::string help needed Pin
VISWESWARAN19988-Feb-17 8:02
professionalVISWESWARAN19988-Feb-17 8:02 

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.