Where to store additional files
-
Hi, I'm developing an application which uses some additional files ( like images,templates etc). I have made folders in bin/debug/ dir so that i can access them relative to exe. Is this a correct way? As now i am switching to release configuration, I need to copy all these files with dlls which i refer to bin/release directory also. What should be done ideally?
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
-
Hi, I'm developing an application which uses some additional files ( like images,templates etc). I have made folders in bin/debug/ dir so that i can access them relative to exe. Is this a correct way? As now i am switching to release configuration, I need to copy all these files with dlls which i refer to bin/release directory also. What should be done ideally?
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
Ideally you add an installation / setup project to your solution. Such a project will allow you to add additional files, like drivers, images, etc., and it will allow you to determine where these files will be copied to, during installation.
My advice is free, and you may get what you paid for.
-
Ideally you add an installation / setup project to your solution. Such a project will allow you to add additional files, like drivers, images, etc., and it will allow you to determine where these files will be copied to, during installation.
My advice is free, and you may get what you paid for.
Thanks for this quicky, I already have an installation project in solution. But if i add those files only in installation project, How can i access these files/folders while debugging my application? As my code uses path of exe+path of folder to access those files, folders must be inside application folder.
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
-
Hi, I'm developing an application which uses some additional files ( like images,templates etc). I have made folders in bin/debug/ dir so that i can access them relative to exe. Is this a correct way? As now i am switching to release configuration, I need to copy all these files with dlls which i refer to bin/release directory also. What should be done ideally?
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
Mithun.Shitole wrote:
I have made folders in bin/debug/ dir so that i can access them relative to exe.
As long as you only read these files that is acceptable. From the moment you actually need to alter (write into)/ create these files it's not, and vista won't even allow you to (well it will but it will be in the virtual drive).
Mithun.Shitole wrote:
need to copy all these files with dlls which i refer to bin/release directory also.
As suggested you can do this in the setup project. Just go to where you add the exe ('application folder' if I'm not mistaken), add the folder with the correct name, add the files need into the folder. Watch out that you add at least one file to each folder created otherwise the setup sometimes doesn't create the folder, don't ask my why but its something I found out the hard way ;P
-
Hi, I'm developing an application which uses some additional files ( like images,templates etc). I have made folders in bin/debug/ dir so that i can access them relative to exe. Is this a correct way? As now i am switching to release configuration, I need to copy all these files with dlls which i refer to bin/release directory also. What should be done ideally?
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
Make a function: openfile(path as string) if the bin directory is in the same parent directory as the .exe file then do this
call openfile("bin\sample.jpg")
similarly call other files.
TheMrProgrammer TheCalcMan: A no-mouse required Calculator supporting constant operator and visual effects Try it once, its awesome! Just 17.1 KB download. No installation required. No dlls. Just unrar and go. And its a freeware. http://www.hotlinkfiles.com/files/2642094\_kjwr0/TheCalcMan.rar
-
Hi, I'm developing an application which uses some additional files ( like images,templates etc). I have made folders in bin/debug/ dir so that i can access them relative to exe. Is this a correct way? As now i am switching to release configuration, I need to copy all these files with dlls which i refer to bin/release directory also. What should be done ideally?
Mithun Shitole "Free Your Mind" http://www.technoyaari.com
If the files are read only you should be able to include them in your VB project and set the "Copy to output directory" option to "Copy always". That way, the files will always be copied to the bin directory automatically.