Thanks Doug. I appreciate you pointing this out to me. I checked two references and neither one of them mentioned this teensy little requirement. I guess they must've thought it wasn't important.
R, John > -----Original Message----- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of Doug Currie > Sent: Friday, June 17, 2011 4:07 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] OSX path > > > 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 _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users