Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkGDK and MySQL

Author
Message
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 21st Apr 2009 04:03
Hi, I was wondering if there was a way that I could make my DarkGDK game communicate with a MySQL database.

All the database will do is store login info, who owns what items, and a win/lose/tie thing.

So is it possible?

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 21st Apr 2009 06:09
Yes ,you can ,just use MySql c api.
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 24th Apr 2009 00:53
thank you, but when doing this.

What would i need to #include<XXX.h> for it?

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 24th Apr 2009 05:38
#include <windows.h>
#include <MySql.h>
#pragma comment ( lib, "libmysql.lib" )
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 26th Apr 2009 00:54
Just two last questions (hopefully).

Doesn't DarkGDK.h already #include windows.h?

And do I just need MySQL installed to be able to access MySql.h, or do i need something else?

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"
Lion Jin
18
Years of Service
User Offline
Joined: 24th Sep 2006
Location:
Posted: 26th Apr 2009 17:31 Edited at: 26th Apr 2009 17:37
Yes ,DarkGDK should include windows.h ,in fact ,I did not use GDK and MySQL togather in my current project,because the database is on the server side which store all the user data .My GDK program is on the client side ,I used RakNet doing the network .

If you installed MySQL ,mysql.h is in the "include"folder ,"libmysql.lib" in the "lib"folder.Those are all you need.

Login to post a reply

Server time is: 2024-09-30 23:11:26
Your offset time is: 2024-09-30 23:11:26