Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Calling external executable


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Apr 18, 2018 11:27 AM Last Post By: Victor Schabort
Victor Schabort

Posts: 10
Registered: 12/23/11
Calling external executable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 18, 2018 3:29 AM
I always used wspawnlp(P_WAIT,EXEString.c_str(),EXEString.c_str(), NULL) to execute other programs from inside my code.
For some reason this does not work anymore for executables compiled outside of C++ Builder.
The programs does not execute, but the call does not return an error either.

I am currently using C++ Builder 10.1 Berlin.

Please give some guidance.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Calling external executable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 18, 2018 10:26 AM   in response to: Victor Schabort in response to: Victor Schabort
Victor Schabort wrote:

For some reason this does not work anymore for executables compiled
outside of C++ Builder. The programs does not execute, but the call
does not return an error either.

On Windows, do you have the same problem if you use the Win32 API
CreateProcess() function directly? Do you have the same problem if you
don't use P_WAIT? Are you able to manually run the EXEs directly at
all, such as from a command-line prompt?

--
Remy Lebeau (TeamB)
Victor Schabort

Posts: 10
Registered: 12/23/11
Re: Calling external executable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 18, 2018 11:27 AM   in response to: Victor Schabort in response to: Victor Schabort
I discovered my error...please ignore
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02