|
Hi,
You try this and let me know if this solves u r problem.
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
// Start the child process.
if( !CreateProcess( NULL, // No module name (use command line).
"C:\\Sample\\Debug\\sample.exe", // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
TRUE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)
{
AfxMessageBox( "CreateProcess failed." );
}
Ashok
|
|
|
|
|
All above haven't understand my problem. After some rest I find the truth.
I only need use API ::SetCurrentDirectory first, and then erverything is right, howerver thank you very much.
|
|
|
|
|
|
|
Make a complete path and it work.
BTW: if this doesnt work it should be that you havent set the Current Directory right.
Greetings from Germany
|
|
|
|
|
Can we add a web page to a dialog box in vc++?
KIRAN PINJARLA
|
|
|
|
|
hi,
1) There is a ActiveX Control to Display a Web Page.
2) You can show a Web Page by using Api's like Shell Execute,CreateProcess.
but in my view there is no method to add a WebPage to a Dialog.
Uday kiran
|
|
|
|
|
kiran.pinjarla wrote: web page to a dialog box in vc++
Yes. You can for this you would need to know about CDHtmlDialog
The CDHtmlDialog class is used to create dialog boxes that use HTML rather than dialog resources to implement their user interface. CDHtmlDialog can load the HTML to be displayed from either an HTML resource or a URL.
You can also create a view by CHtmlView
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can also do it as a control: CHtmlCtrl[^]
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
I am using vc 6. its not supporting "afxdhtml.h".
whats the Solution?
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: I am using vc 6. its not supporting "afxdhtml.h".
you can host IE control on your Dialog box, see registered Component!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
See Here[^] maybe it is some helpful to you
|
|
|
|
|
I am working with vc6 and is it not possible with vc 6?
KIRAN PINJARLA
|
|
|
|
|
im sorry,I dont have VC6.Can you use CHtmlView
|
|
|
|
|
hi all,
I am drawing a Black Color in the OnDraw(...) of the CView Class.
It is Drawing the Color but when i move the Screen of the View the Color is Being Flicker.
Also i am showing a CDialog before the CView of Black Color. after cancelling the CDialog that much area is being Erased.
please help me out.
Uday kiran
|
|
|
|
|
uday kiran janaswamy wrote: Color is Being Flicker
To avoid flickering you have to handle WM_ERASEBKGND, and simply return TRUE
Hope this'll work.. Try it..
Do your Duty and Don't expect the Result
|
|
|
|
|
hi appu,
i tried but it is showing the DeskTop items also into my view.
It become a TrasparentWindow.
Uday kiran
|
|
|
|
|
Try painting your controls in OnPaint() instead of OnDraw() and handle the erase back ground message
Do your Duty and Don't expect the Result
|
|
|
|
|
hi appu,
I have tried but i am not getting it. i tried with paint also even then it is showing the desktop backgroud.
please give me a snippet of code
Uday kiran
|
|
|
|
|
Sorry then i have no idea.. actually i saw one application which handles the WM_ERASEBKGND message and return TRUE and it is commented stating to avoid flickering... thats why i suggest it to you..
Do your Duty and Don't expect the Result
|
|
|
|
|
Do you have problem with OnPaint ?
|
|
|
|
|
Can you provide a code snippet with the drawing code?
|
|
|
|
|
Hi, in my dialog i have one button "Item" by pressing this button second dialog will appear.
I need short cut key for opening this second dialog.
So i placed one accelerator for the ID of that second dialog (i.e)IDD_ITEM_DLG as ctrl I. And coded for this ID in mainframe class as Onitemdlg().But when i press ctrl I in my keyboard it does not works.
So, i made the same thing for that particular button in first dialog and coded in that first dialog class as the same .That time also it never works.
How can i do this?
P.S:when i write property for item button (i.e)&Item,
but in ouptput dialog nothing is display under I letter.
-- modified at 5:12 Wednesday 2nd August, 2006
Anu
|
|
|
|
|
Have you called LoadAccelerators() .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
See Here[^] and Here[^]maybe it is some helpful to you
|
|
|
|