hi ,all :
I cannot understand why sqlite3_open FAILED in cocos2d-x .In cocos2d-iPhone I do like this
NSArray paths = NSSearchPathForDirectoriesInDomains;
NSStringdocuments = [paths objectAtIndex:0];
NSString *database_path = [documents stringByAppendingPathComponent:DBNAME];
>
if (sqlite3_open([database_path UTF8String], &db) != SQLITE_OK) {
sqlite3_close(db);
NSLog(@“数据库打开失败”);
}
>
And in cocos2d-x when i enter the Documents directory ,I found no db was established ,what should I do to solve this problem