this could help you, process.waitforexit();
its placed on system :: diagnostics namespace, its clearly independent
of threads creation, u can conbine its use with threads so you obtain
parallel processes working at the same time.
I ve used all I say only once, so take care please.
hope this helps, Carlos.
> What is it called when I have the thread notify me that it's done? In
> visual basic it's called raising an event. Win32 API calls it callback.
[quoted text clipped - 14 lines]
>>>
>>> Daniel
Carlos - 19 Jul 2008 14:14 GMT
excuseme, now I have not my things here, I cant verify
I used what I ve told u.
> this could help you, process.waitforexit();
> its placed on system :: diagnostics namespace, its clearly independent
[quoted text clipped - 21 lines]
>>>>
>>>> Daniel
Carlos - 19 Jul 2008 15:20 GMT
Perhaps this code could help u
ProcessStartInfo ^prData;
prData = new ProcessStartInfo();
prData->Verb = "open";
prData->FileName = "c:\\file.txt";
Process ^pr = Process::Start(prInfo);
... I havent a compiler now, I believe from here
you can call pr::Waitforexit( ) the way u want
Carlos.
> excuseme, now I have not my things here, I cant verify
> I used what I ve told u.
[quoted text clipped - 24 lines]
>>>>>
>>>>> Daniel
Carlos - 19 Jul 2008 15:52 GMT
wrong copy-paste on last post
ProcessStartInfo ^prData;
prData = gcnew ProcessStartInfo();
prData->Verb = "open";
prData->FileName = "c:\\file.txt";
Process ^pr = Process::Start(prData);
> Perhaps this code could help u
>
[quoted text clipped - 40 lines]
>>>>>>
>>>>>> Daniel
> What is it called when I have the thread notify me that it's done? In
> visual basic it's called raising an event. Win32 API calls it
> callback. I need to know how to do that. I need to have a word to
> search the MSDN documentation.
Try BackgroundWorker class.
> Daniel
>
[quoted text clipped - 9 lines]
>>>
>>> Daniel