In my graphics application, I have a class that deals with saving and loading files and I've created my own extension .x . I have a method in that class that takes the name of a file, opens it, reads it and generates a particular scene according to the syntax I've defined previously. But the thing is: I don't want to change my code every time I want to open a different file!
Here's what I have already done: I have associated my new .x extension to the executable in question. What I want to know is how to pass my file's name to my executable the minute I doubleclick it.
I have a feeling it has something to do with the arguments in
Thanks for your help.Code:int main(int argc, char **argv)