Hi!
(I like to use stdlib and system because I want this portable for Win32 and DOS.)
To execute an command line application from within my C++ program I use int i = system("C:\\path\\...\\programname.exe parameters..."). So far it works well.
But the absolute/full path is a bit unreliable. .\\programname.exe doesn't work. Also start .\\programname.exe not.
How can I use relative paths? (the two applications will be in same directory)
argv[0] shows the path until ...\\ but I don't know how I can combine argv[0] + programmname.exe as executable string. (guess it won't work this way)