LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X, Media Player, changing path of *.avi

I integrated in my software an animated avi file. To show this avi I use some ActiveX --> Media Player. It works fine, as long I start the application from LabWindows. If I create a distribution kit an install it on an other PC the avi is not found, why? I opened the explorer and checked if the avi file was installed as well on the computer, and it was. Maybe I've to redefine the path to the avi on the other computer? Are no relative paths possible?
0 Kudos
Message 1 of 3
(3,061 Views)
Hi,

As a first way of debug, I would define the absolute path of the AVI file, using GetProjectDir() and MakePathName().

I've always been using these two functions when I ha ve to read data file. They prevent from having path access problems.

Hope this helps,

Ph. Joatton



int GetProjectDir (char directoryName[]);
void MakePathname (char directoryName[], char fileName[], char pathName[]);
0 Kudos
Message 2 of 3
(3,061 Views)
I tried what you've said, and it works as long I start the application from the explorer, but not from the icon in the start programs. Thats strange...
0 Kudos
Message 3 of 3
(3,061 Views)