05-27-2015 10:00 AM - edited 05-27-2015 10:02 AM
I noted recently that some of my projects have libraries added in a separate "Library" branch of the project tree while in other they are simply listed at the base tree level; see these two examples:
Is there any practical difference between these two arrangements, apart the aestethic? May I have problems in the second one? I am actually running several of my projects in the second scenario without apparent problems, so I tend to answer "no", but who knows?
Solved! Go to Solution.
05-28-2015 02:19 AM
Hi Roberto,
Could that difference be coming from the way you add those files?
Could a simple drag-drop of a lib file and adding by Edit Project dialog box be behaving differently?
Just a hunch.. 😉
05-28-2015 02:42 AM
Hello Roberto,
The hierarchy in project tree is only for logically organizing your files. It doesn't have any impact on how the program works.
You can modify the hierarchy to organize your files in virtual folder as you like.
Starting with CVI 2013 you can also add sub-folders, which wasn't possible in 2012.
Constantin.
05-28-2015 02:54 AM - edited 05-28-2015 02:56 AM
I have the impression that it depends on original version the project was built.
If I add a library in a CVI2012 project it will be put in the Library folder, which is created if not yet present. Making the same operation in a CVI2009 project simply adds the library to the tree.
Opening a 2009 project without libraries in 2012 and adding a library creates the Library folder.
Opening a 2009 project with libraries in 2012 does not automatically create Library folder, but if I add a library it indeed creates it so that resulting project has a mixed situation with some libraries in the folder and others in the tree. I can then drag existing libraries into the Library folder, but this is not required to succesfully run the project in the IDE and create the executable.
I suppose the position of libraries in the project tree is simply a graphical representation and has no influence in program behaviour.
BTW I always use Edit >> Add files to project to add libs
* Edit * Constantin has replied while I was writing, confirming my hypothesis