简体   繁体   中英

error in connecting access database in c++ program

i am getting error "security issue : the connection string may contain a password"

i want to connect access database with my c++ program using ODBC. i am using visual studio 2008.

following are the steps what i have done to create this created simple access database (testdb.mdb) and added user dsn(test) then created mfc application in database support i selected database view with file support and selected odbc and cliked button data source and selected my created dsn(test)

now when i build this that above error occurs what shoul i do ?

just remove the line

#error Security Issue: The connection string may contain a password

from the generated header file.

it is there just to make you aware of that it is not good to have hardcoded passwords in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM