OS - Windows The encoding of the input string is unknown, but most likely Windows will be. Project file encoding is a set of unicode characters. Language - C ++
The problem is that it cannot connect to the database in another explicitly specified directory ("file: C: /Users/Public/Desktop/testDb.sqlite") it simply does not appear ... However, the address specified relative to the current directory where the program is located is an example: ("SqLite / testDb.sqlite")
A wrapper class constructor that simultaneously connects to the base the following:
CSqliteManager::CSqliteManager(const char* dbName) { db = nullptr; int rc = sqlite3_open(dbName, &db); if (rc != SQLITE_OK) { db = nullptr; } } Tell me how to change the line to connect or something else so that no one else has any problems? The program will be on computers with Windows used.
sqlite3_errmsg()say when it fails to open the database? - Fat-Zerfile:C:/Users/Public/Desktop/testDb.sqlite” - slash (s) afterfile:missing only here or in the source too? inerrnothere is no additional information? - Fat-Zer