Agrawal, Manish <magra...@usf.edu> wrote:
> All the sqlite examples I see use absolute paths to the sqlite database in 
> Visual Studio projects, e.g.
> "C:\users\test\apps\db\test.db3". 
> 
> How can I specify the path to the sqlite database relative to the application 
> root folder, e.g. "db\test.db3"?

You use GetModuleFileName Windows API to obtain the location of your EXE, then 
modify this location as necessary to obtain the desired absolute path to the DB 
file.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to