LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening file to automatically open and run program with input file

Solved!
Go to solution

My program has the ability to save and open a text file with a custom extension.  How do I make the system in which the program is being installed to recognize this file to open the program, AND how to I gather the input file in my program and load it.

 

Thanks

0 Kudos
Message 1 of 3
(3,472 Views)

Ok I have found on a different thread how to setup/register the file path association in the classes root.  What I don't understand is how my program will know what the input file is.  For example, the reg setting is C:/.../MyProgram.exe %1

 

When my program loads, is the %1 in the argc/argv part of the main thread? And if so, how do I debug/test this?

 

Thanks

0 Kudos
Message 2 of 3
(3,466 Views)
Solution
Accepted by topic author ngay528

And now I figured out how to debug by going to Run and changing the 'Command Line' arguments there.

 

So solved.

0 Kudos
Message 3 of 3
(3,463 Views)