开发者

Problem with shortcut when database is included in the project

开发者 https://www.devze.com 2023-01-21 09:08 出处:网络
I made a setup project and added a folder for desktop shortcut.My application includes database file as well.When I installed the application and ran the shortcut from desktop, it gave Desktop\'s path

I made a setup project and added a folder for desktop shortcut. My application includes database file as well. When I installed the application and ran the shortcut from desktop, it gave Desktop's path and said ABC.mdb not found.

How can I make it so that when user accesses the shortcut, it finds the 开发者_如何转开发database in the folder where user installed the application instead of finding it on desktop.

Thanks a lot.

Furqan


You need to specify an absolute path to the database.


Install the .mdb file to the same directory as the .exe, then have your .exe look for the .mdb in it's own directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消