|
|
|
|
how to close parent dialog from child dialog
|
|
|
|
|
CDialog* pTest=(CMyParent*)GetParent();
pTest->EndDialog(0);
will close the parent dialog from the child dialog
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: CDialog* pTest=(CMyParent*)GetParent();
pTest->EndDialog(0);
will close the parent dialog from the child dialog
but before it have to close itself.. if child dialog is modal
|
|
|
|
|
No the parent dialog closes anyways.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
before trying to do this, i'd lie to know why you would want such a thing ?
a modal child dialog cannot be orphaned...
|
|
|
|
|
hi i have to install a pacakage through mfc code. anyone know this pls help me.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
What do you mean by package ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
i am having a vpn setup which i have to install this through mfc coding
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
|
If you are just wanting to run another application, see here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
|
|
WhiteSky wrote: http://www.codeproject.com/tools/InstallerMod.asp[^] modified of your nice answer
yea thats nice!...
|
|
|
|
|
Dear all,
In my project I woyld like to send data step by step, so now I want to put timer in this source to delay for each step, for example:
send data 1
delay 2 seconds thend
send data 2
delay 2seconds
...
Anyone who have experence with timer in VC+ please help me solve this problem. Many thak for your help. As below is my source code:
void DlgComputing::OnButtonSendtorobot() <br />
{<br />
int rowData, rowOutput;<br />
int tmpi[3];<br />
<br />
rowData = m_grid2.GetRow();<br />
<br />
for (int i=1; i<= rowData; i++)<br />
{<br />
for (int j=5;j < 8; j++)<br />
{<br />
m_grid2.SetRow(i);<br />
m_grid2.SetCol(j);<br />
CString tmp = m_grid2.GetText(); <br />
tmpi[j-5] = atoi(tmp);<br />
}<br />
SendtoKuka (tmpi[0],tmpi[1],tmpi[2],m_iA,m_iB,m_iC);<br />
}<br />
SendtoKuka(0, 0, 0, 0, 0, 0);
|
|
|
|
|
WinAPI Sleep(...) could give u help on delaying 2 seconds.
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
|
Thank very much about your information ,WhiteSky !
|
|
|
|
|
Tran Ngoc Minh wrote: WhiteSky !
White Sky where are you my brother!
|
|
|
|
|
Next Wednesday is new year in my country and I must ready for it;)
|
|
|
|