ok from all of my questions you can probably tell I'm working on something. I want a file to open my program when it is double clicked on (ex .txt opens notepad) I know how to modify the registry n stuff what I need is how to make my program use that file when opened this is a CUI console app. Thanks in advance.
Recommended Answers
Jump to PostYour program needs to take the file name as argument. Example program:
#include <fstream> #include <iostream> #include <limits> using namespace std; int main( int argc, char** argv ) { // Make sure the program has at least two arguments: // 1: the program's executable path // 2: …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.