|
Check http://www.codeproject.com/threads/consolepipe.asp?target=Console%7CSpawn%7Cclass
http://www.codeproject.com/dialog/quickwin.asp?target=Console%7CSpawn%7Cclass
http://www.codeproject.com/system/console_spawn_class.asp?target=Console%7CSpawn%7Cclass
http://www.codeproject.com/useritems/redir.asp?target=Console%7CSpawn%7Cclass
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Thanks for the reply. All these Example are using create process method for console Application which is created by their own program(output) not interacting with external application. But in my case batch file process(cmd.exe) is created by some one else. Now I know only the ProcessID and ThreadID. From this information I need to go inside the process and get the command line arguments.
Viji
|
|
|
|
|
Try openprocess using your process id using the same code
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I am trying to execute all these 4 demos(you referenced) under Windows 98. It is not responding. Is this because Command.com(16 bit)?
|
|
|
|
|
hi,
I perform a lengthy operation in a property page when users clicks a button. For example, like this
//////////////
m_bUserAbort = FALSE;
while(1)
{
MSG msg;
while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
AfxGetThread()->PumpMessage();
if(m_bUserAbort)
break;
}
///////////
However, the dialog is not responding to user's cancel button click, which sets m_bUserAbort to true.
what is wrong ? the page is not even responding to move operation by mouse.
regards
hari
Hari Krishnan
|
|
|
|
|
Hi Hari,
Try:
<br />
while(1)<br />
{<br />
MSG msg;<br />
while(::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))<br />
{<br />
if(!AfxGetApp()->PumpMessage())<br />
{<br />
::PostQuitMessage(0);<br />
break;<br />
}<br />
}<br />
LONG lIdle = 0;<br />
while (AfxGetApp ()->OnIdle (lIdle++));<br />
<br />
if(m_bUserAbort)<br />
break;<br />
}<br />
Wout Louwers
|
|
|
|
|
|
In VC6.0,why I cannot open the project of CDex downloaded from "http://sourceforge.net/" ? Thank you first.
Rap off for you,for me,for our human.
|
|
|
|
|
I hope it may be the version probelm. The project could be developed in vc5. while opening whether it gives any error. if so, wat error its display? Wat the error is appering while the file is open....
convey me the error details fully. Then i try to solve ur problem.
Shanmuga Sundar.V
|
|
|
|
|
While opening it, the VC6.0 is no response as if anything didn't happen.
Rap off for you,for me,for our human.
|
|
|
|
|
Couly you give me a sample of creating an ini file and reading from and writing on it?
|
|
|
|
|
If you mean how to use ini files, you should check out this[^] article!
Hope this helps
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
Hi CPians,
I'm facing the following problem : I have a MFC dialog app which automates Excel (using OLE automation). I'd like to change the format of a range of cell from "Standard" to "Text", or "Number". How do I achieve that ? I already have a LPDISPATCH on my range of cells, and I have tried using a Style type, but since OLE is really new to me , I get a little bit lost with functions returning only VARIANT and so ... so please, could anybody provide me a code snippet for changing the format of these cells ?
Thanks a lot ...
~RaGE();
|
|
|
|
|
oRange.SetNumberFormat(CComVariant("0.00"));
oRange.SetNumberFormat(CCOmVariant("@"));
Peter Molnar
|
|
|
|
|
Thank you very much, that helped. I expected it to be so complicated that I did not even think about trying something that simple ... Thanks a lot !
~RaGE();
|
|
|
|
|
i have tried it all ,
i was even able to establish a conversation with netscape
using NETSCAPE,NSShell,Netscape6 (different for different netscape versions)
but netscape never sends me the URL
please help
|
|
|
|
|
Hi,
I have a dialog based appliaction, Which was working fine. All of a sudden it started crashing at DoModal(). When i call DoModal() it send WM_DESTROY message. Could anyone please tell me what is wrong?
Regards
Neha
|
|
|
|
|
Please specify in detail , whether it is a Modal or Modeless dialog ,
and what do u mean by When u DoModal it sends WM_DESTROY message.
Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
It is a Modal dialog.
What i mean is when i call DoModal(), it comes to OnDestroy() member function of the dialog window.
|
|
|
|
|
Press F9 on destroy, press F5 and then open the callstack and check what's happening
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
It crashes at:
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);
in DLGCORE.CPP
hInst,lpDialogTemplate has the proper values.
pParentWnd=NULL;
AfxDlgProc has some value.
After this it will go to OnDestroy() instead of OnInitDialog()
|
|
|
|
|
Can you call GetLastError and see the error string?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi,
case 1
CDialog oCDialog;
if(oCDialog.DoModal()==IDOK)
{
}
case 2
CDialog *pCDialog;
pCDialog = new pCDialog;
|
|
|
|
|
|
Did u change the resource file just before it started crashing?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|