On Jun 17, 2011, at 2:56 PM, john darnell wrote: > I am attempting to open an SQLite database on the Mac (OSX Snow Leopard) and > am getting an error. This is the code I am using: > > char DBEnginePath[1000]; > > strcpy(DBEnginePath, "Macintosh HD:Applications:Adobe InDesign > CS5:Plug-Ins:WPC_ID:IndexData.db"); > fprintf(stderr, "%s\n", DBEnginePath); > // Sends correct path to stderr for verification. > Result = sqlite3_open_v2(DBEnginePath, &db_ptr, SQLITE_OPEN_READONLY, > NULL); // Errors out here.
Your path has colons instead of slashes for separators. Open a Terminal window, and drag the database file into the window. The terminal.app will display the path name on the command line. You can copy and paste from there. It's probably something like: /Applications/Adobe\ InDesign\ CS5/Plug-Ins/WPC_ID/IndexData.db e _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users