12-06-2013 03:25 PM
I'm developing using Labwindows/CVI 2013 on Win7
I'm trying to get my installed Labwindows/CVI application (the app is called KSALogViewerV100) to run when a file with a particular extension is double-clicked.
I went to Control Panel:
Control Panel\All Control Panel Items\Default Programs\Set Associations
I found my extension (.klg) and and clicked Change Progam, then Browse and navigated to:
C:\Program Files (x86)\KSALogViewerV100 and selected KSALogViewerV100.exe
So far so good.
But when I open Explorer and find a file like MyFile.klg and double click it I get this:
Any ideas what I'm doing wrong?
12-09-2013 10:46 AM - edited 12-09-2013 10:48 AM
Why do you want to do this?
If you have CVI Runtime engine installed then your application should automatically start without any association.
May be you need to handle command line parameter (Filename) in your CVI application.
12-09-2013 01:35 PM
OK, my bad, I was mis-handling the argc, argv stuff and overwriting a string.
Now when I double-click a .klg file the appliction comes up just fine. The full path-name of the file I double-clicked is in argv[1].
Not sure I followed you though--
Are you saying I should not have to go into control panel to associate .klg file types with my KSALogViewerV100.exe application?
Kirk