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.
Zssffssz
-4
Junior Poster
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
Reply to this topic
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.