07-11-2018 02:07 PM
Is there a way to get the relative or absolute from a file in the design tree (CWS or PRJ file) for use in the source code at compile time?
In other words, I have a project with this attached library:
This is a general purpose library that I use in multiple projects. There's no guarantee that each project has checked out this source with the same local directory structure from SVN.
Using the cursor files in the library source looks something like this:
stopCursor = LoadCursorFromFile("\\Cursors\\stop_20x20.cur");
As you can imagine, that path easily gets corrupted. It would be nifty to somehow have a lookup or macro that gets the path from wherever/however you've added the files to the file tree.
07-12-2018 03:51 PM
What version of CVI are you using?
Can you right click on your items and select Explore Directory to open up the Windows directory where they are saved to get the file path?
07-12-2018 03:56 PM
This is CVI 2017, version 17.0.0 (295).
Yes, I can explore directory the way you described.