Andi,
> I'm embarrassed to be asking, but I just can't figure it out.
> I need to call an executable with command line style parameters,
preferable
> as a blocked call.
>
> eg: doSomething.exe -a -b -c
My first thought on this is KernelLibrary>>winExec:uCmdShow:, but, there
might be a better way. Even if it is the preferred approach, you will
probably have problems with the blocking part. First, #winExec:uCmdShow:
overlaps the call, so it runs on a separate OS thread to avoid blocking the
entire image (something that you want to happen). You could define a
#blockingWinExec:uCmdShow: to do the same thing but not overlapped.
However, (I think) you will find that you'll still end up with a separate
process running independently of your image, so it won't block????
Do you have control over the thing you are running? If so, you might be
able to arrange for it to signal a Win32 event or semaphore (I forget the
precise terminology) when it's complete, and have a Dolphin thread wait on
that same event. IIRC, I had that working once. Another solution would be
COM connection points, and there's always sockets though I doubt that's
something you'd want to use in this situation.
Have a good one,
Bill
--
Wilhelm K. Schwab, Ph.D.
[hidden email]