Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproblem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 8:59
Mathieu Dijkstra9-Nov-05 8:59 
QuestionRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:11
David Crow9-Nov-05 10:11 
AnswerRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 10:24
Mathieu Dijkstra9-Nov-05 10:24 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow9-Nov-05 10:34
David Crow9-Nov-05 10:34 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 11:07
Mathieu Dijkstra9-Nov-05 11:07 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra9-Nov-05 22:57
Mathieu Dijkstra9-Nov-05 22:57 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 2:36
David Crow10-Nov-05 2:36 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 7:17
Mathieu Dijkstra10-Nov-05 7:17 
D'Oh! | :doh: wel i tryd it and it wont work this is wat i dit in the function
--------------------------------------------
void CChildDialog::OnBUTTONproblem() <br />
{<br />
<br />
	// TODO: Add your control notification handler code here<br />
<br />
<br />
	CComunicationbetweenvariabelof2windowsDlg *pParent;<br />
	pParent = (CComunicationbetweenvariabelof2windowsDlg *) GetParent();<br />
	m_waardeChild = pParent->m_TestOutput;<br />
<br />
<br />
<br />
// can anny one tel me how this works in c++ i dont understand<br />
// to get data from the other window up in here?????	<br />
	<br />
	UpdateData(FALSE);// to put data on screen (i wil change it in the future to	SetWindowText() must first look how it works i think somthing like this but not tested SetWindowText(m_waardeChild); // but as usual c++ wil say it's wrong<br />
}

-------------------------------------------------------------------------------
message by visual c++6 =
--------------------Configuration: comunication between variabel of 2 windows - Win32 Debug--------------------
Compiling...
ChildDialog.cpp
c:\sevc6\comunication between variabel of 2 windows\ChildDialog.cpp(60) : error C2065: 'CComunicationbetweenvariabelof2windowsDlg' : undeclared identifier
c:\sevc6\comunication between variabel of 2 windows\ChildDialog.cpp(60) : error C2065: 'pParent' : undeclared identifier
c:\sevc6\comunication between variabel of 2 windows\ChildDialog.cpp(60) : warning C4552: '*' : operator has no effect; expected operator with side-effect
c:\sevc6\comunication between variabel of 2 windows\ChildDialog.cpp(61) : error C2059: syntax error : ')'
c:\sevc6\comunication between variabel of 2 windows\ChildDialog.cpp(62) : error C2227: left of '->m_TestOutput' must point to class/struct/union
Error executing cl.exe.

comunication between variabel of 2 windows.exe - 4 error(s), 1 warning(s)
Frown | :(

thank's verry much for helping
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
David Crow10-Nov-05 8:20
David Crow10-Nov-05 8:20 
GeneralRe: problem with variable in 2 diferent dialog boxes Pin
Mathieu Dijkstra10-Nov-05 8:31
Mathieu Dijkstra10-Nov-05 8:31 
QuestionFast files Pin
hint_549-Nov-05 7:42
hint_549-Nov-05 7:42 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 8:12
cgreathouse9-Nov-05 8:12 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:06
hint_549-Nov-05 9:06 
GeneralRe: Fast files Pin
cgreathouse9-Nov-05 9:36
cgreathouse9-Nov-05 9:36 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:48
hint_549-Nov-05 10:48 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:55
David Crow9-Nov-05 9:55 
AnswerRe: Fast files Pin
David Crow9-Nov-05 8:34
David Crow9-Nov-05 8:34 
GeneralRe: Fast files Pin
hint_549-Nov-05 9:15
hint_549-Nov-05 9:15 
General[Message Deleted] Pin
Mathieu Dijkstra9-Nov-05 9:31
Mathieu Dijkstra9-Nov-05 9:31 
GeneralRe: Fast files Pin
David Crow9-Nov-05 9:49
David Crow9-Nov-05 9:49 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:06
hint_549-Nov-05 10:06 
GeneralRe: Fast files Pin
David Crow9-Nov-05 10:17
David Crow9-Nov-05 10:17 
GeneralRe: Fast files Pin
hint_549-Nov-05 10:31
hint_549-Nov-05 10:31 
GeneralRe: Fast files Pin
James R. Twine9-Nov-05 17:05
James R. Twine9-Nov-05 17:05 
GeneralRe: Fast files Pin
hint_5410-Nov-05 7:52
hint_5410-Nov-05 7:52 

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.