By default when debugging a C++ project the visual studio debugger will set the working directory for the program being debugged to the folder that contains your project file (.vcxproj).
adding directories and data to empty c++ project
Hi I have a c++ project and I want to add directories and files to the directory the .exe file will be in when debugging basically I want to add the directory data and the file time.db to the directory data in the directory the exe file will be in so when it's run it will have the resources available? how does this work with visual basics? If I use fopen("data/time.db", "w") should i put the files in a certain directory? because data directory wont be there and I think it will give me an error. Like should I add a filter and if so where should it be added in the sources filter or in its own filter and how should I access it with fopen. Thanks for your patience. Also I used c++ filter cause that's the only one for c programming and this program is in c.
Lastly if there is a different way then using the fopen statement that visual basic programmers use I'm ears. I am very new to visual basics and also I am not a student I am just a hobbyist.