Trying with ValentinaDB for C++

Cam Vi Luong camviluong at yahoo.com
Tue Jan 10 10:28:15 CST 2012


Hello ValentinaDB,

1. My Code is copy from ValentinaDB Example "API_Database_Clone" (Database_
Clone.cpp and Examples.h, Examples.cpp). Why I can run it?
2. I have tried to change to pFblDb->Create(); but It still not work.
3. I am only need 1 simple example (Create a database, create a table).

> This is My Code
> 
> ValentinaInit(4 * 1024 * 1024);
> 
> VSQL::I_SqlDatabase_Ptr pSqlDb = CreateSqlDatabase(kStorage_Disk);
> FBL::I_Database_Ptr pFblDb = pSqlDb->get_BaseDatabase();
> 
> I_Location_Ptr pLocation = CreateDiskLocation("D:\\Data\\Valentina\\test_db");
> pFblDb->put_Location( pLocation );??? ???

Help me, Please!

Best regards,
Thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20120111/21bd3278/attachment.html>


More information about the Valentina mailing list