Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

vincent_valentine

Database with C++ - need tutorial

This topic is 5246 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this is stupid... but the games i''m trying to plan requires tons of infomations.. and i think a database is great. But I don''t know how databases work with C++. So can anyone tell me where to get tutorials for database working with C++, at least for MS Access. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Generally, we use ODBC. Look up ODBC on MSDN.

If the database type doesn't matter, you can use MySQL (has a native C interface) or something like sqlLite which is a small embeddable db engine.

[edited by - downgraded on June 10, 2004 10:07:28 AM]

Share this post


Link to post
Share on other sites
Maybe games that uses database are too slow, but is there some way to use the database for the ease of designing?

Anyway, where is the articles for storing games data in runtime and in files?

Share this post


Link to post
Share on other sites
Do you mean like they did in Age of Empires? Used a live database to alter game variables and then ''flattened'' it into a file the final game. I think I saw an article about this on Gamasutra.

You will need a common data access interface so that the game doesn''t have to undergo major changes when you switch from live database to flat file.

SQLLite uses a single file for a database, it''s pretty much fully SQL compliant - the only drawback is that there''s no visual interface or ODBC connectors like access - so oyu''ll have to hand-craft your SQL statements.

Share this post


Link to post
Share on other sites
Can anyone give me a tutorial or at least a link? I''m working with databases in ASP before, and it comes with no problem. But I''m just a beginner C++ programmer, so...

Can you show me where to look in the article database here?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!