Re: Launching a cygwin binary from an application using CreateProcess Win32 API.

2005-06-09 Thread Alireza Ghasemi

Venaktesh Goapal wrote
> Hi,
>
> I tried what is mentioned in the subject above but
> have not been successful.
>
> CreateProcess(...) returns the error 1305.
>
> From Winerror.h
>
> #define ERROR_UNKNOWN_REVISION   1305L
>
> Has someone tried this, or know the reason for the
> error.
>
> Thanks,
> Venkatesh.
I think Christopher is right.Use ShellExecute() WinExec or (if you use C)
_spawn... and _execThey get less parameters and do the same work foe
simple processes.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Launching a cygwin binary from an application using CreateProcess Win32 API.

2005-06-07 Thread Christopher Faylor
On Tue, Jun 07, 2005 at 12:27:54PM -0700, Venkatesh Gopal wrote:
>Hi,
>
>I tried what is mentioned in the subject above but
>have not been successful.
>
>CreateProcess(...) returns the error 1305.
>
>From Winerror.h
>
>#define ERROR_UNKNOWN_REVISION   1305L
>
>Has someone tried this, or know the reason for the
>error.

Anyone can try this very easily by just double clicking on the Cygwin
icon or typing (e.g.) c:\cygwin\bin\ls.exe .  These would illustrate
cygwin binaries being started by CreateProcess.

You undoubtedly did not fill out some field or argument correctly when
invoking CreateProcess.  It's difficult to know exactly what might be
wrong since you didn't provide any details.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Launching a cygwin binary from an application using CreateProcess Win32 API.

2005-06-07 Thread Venkatesh Gopal
Hi,

I tried what is mentioned in the subject above but
have not been successful.

CreateProcess(...) returns the error 1305.

>From Winerror.h

#define ERROR_UNKNOWN_REVISION   1305L

Has someone tried this, or know the reason for the
error.

Thanks,
Venkatesh.



__ 
Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/