Click to See Complete Forum and Search --> : Open program by opening data file... parse command line?


delanoche14
December 13th, 2006, 06:52 PM
OK basically I am having the same problem as this guy except i'm using managed C++ .net.
http://www.codeguru.com/forum/showthread.php?t=110534

I want to click on a file that my program creates that has its own file extension (.tep). I then want my program to be opened and then the program automatically opens the file.

I can set the registry to have the program opened by the data file (.tep). But I do not know how to have it then displayed (or opened) in the program.

from the above thread I basically learned that I have to parse the command line for a file such as myfile.tep.

However, I do not know how to go about doing this nor what functions to use (the ones in the article are for MFC).

Any help would be much appreciated.
Thanks!

-Matt