I have a new feature for my c++ console program. its an updater feature. the updater goes online to my website and downloads a txt file, then the updater reads the file, to see if the program is up to date.
but theres a problem. the updater is a whole separate cpp file. what i want is when the .exe file is clicked on for the program, first it opens the updater file, and when updater is done, it opens the main program .cpp file.

is this possible? (i use dev-cpp)
many thanks :)

Recommended Answers

All 3 Replies

Start by seeing if the system function will do what you want.

do you mean my complier?

No he means try system("path\to\file\updater.exe"); This would work if your update program is packaged separately from your actual executable and if you're planning to only distribute on Windows.

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.