Greetings all
How can i create an executable in run-time? (win32). i need a simple wrapper for different console commands. this is because i must have executable there is no way around it. so what i have come up with is passing the command that i want executed as a command line parameter and it will create an executable that will execute those commands upon execution. I know this is possible because i have seen it being used. How can i do this?
If any one could explain this to me or refer me to any kind of helpful documentation, it would be greatly appreciated.
astropirate
0
Newbie Poster
Recommended Answers
Jump to PostFollow up on old threads, before finding somewhere else to post.
http://cboard.cprogramming.com/windows-programming/117461-creating-executable-runtime.html
Jump to PostExample: "g++ -o out.a main.cpp"
If you want that to be executed inside a C or C++ program:system("g++ -o out.a main.cpp");
All 5 Replies
Salem
5,138
Posting Sage
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
MosaicFuneral
812
Nearly a Posting Virtuoso
astropirate
0
Newbie Poster
ganbree
7
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.