I am in desparate need of some help with a project I am trying to complete.
Basically, I have a Visual C++ GUI application which contains some buttons and a scrollable message window. I can't give the details of what the program actually controls as that would require an NDA; however, one needed use of the program is to run a rather lengthy perl script, which is the heart of the application itself. This perl script cannot be translated to C++ because a portion of the code is only supported in perl.
The perl script, as it stands right now, can be executed on its own from a command line, as an installed software package called by this scipt has its own installation of the perl environment and libraries. The script also prints various statements to the screen when run from the command line.
However, when integrating this script with the Visual C++ GUI, I am having a hard time determining how to first execute the perl script and then print the various statements to the message window in the GUI.
It is possible to embed perl into the C++ application, which essentially allows one to run perl scripts within the program as if from a command line. Therefore, this is one option. However, if I do this, I cannot figure out how I would feed all of the print commands to the message window within the C++ GUI.
Is it possible to execute a command-line command from within a Visual C++ executable? If so, I would think that I would be able to run the perl script without first embedding perl into the application as the script is able to be executed on its own anyway. Then the only issue would be returning the perl print commands to the message window.
If anyone is able to understand any of this and make any suggestions to me, I would be forever grateful. I really need to try to get this all working by the end of this week or at the very latest early next week. I would even be willing to REWARD anyone that is able to successfully assist me.
Thank you!![]()







Reply With Quote
Bookmarks