Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
mysql.h

 
Post new topic   Reply to topic Printable version
 View previous topic  .addop help... Post :: Post MERV's Hardcore dll?  View next topic  
Author Message
Anon_EAGLE II
Guest


Offline

PostPosted: Tue Oct 04, 2005 7:17 pm    Post subject: mysql.h Reply to topic Reply with quote

Im trying to compile a bot and its looking for mysql.h. Where can i find it?

Thanks
_Dan
Back to top
Zim
Guest


Offline

PostPosted: Tue Oct 04, 2005 9:24 pm    Post subject: Reply to topic Reply with quote

http://dev.mysql.com/downloads/mysql/4.0.html

download mysql for windows. the .h will be in the includes directory. the compiler will probebly want more then the .h too; like a lib. you'll know for sure if you get a linker error. the lib will be in the lib dir.
Back to top
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Wed Oct 05, 2005 3:10 am    Post subject: Reply to topic Reply with quote

Ugh, Zim...

EAGLE II, download the archive attached to this post.

For using plugins that need (my)SQL access, you only need to have libmySQL.dll in your mervbot directory and change database settings in a .ini file.

For developing plugins that use (my)SQL access, you need to have libmySQL.lib (inside sql.zip inside attachment), copy this file into "C:\Program Files\Microsoft Visual Studio\VC98\Lib" and add it to your Project Settings of your plugin:
Click on the menu 'Project' / Settings / Tab 'Link' / In the 'Object/library modules' textbox type 'libmySQL.lib'. Now your plugin should compile.

If you need methods that already deal with connecting and doing queries on the database, I suggest you to use SQLClient.cpp and SQLClient.h (and sqlini.cpp for the .ini file). These files are also included in the attachment.

Good luck!
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics




MySQL for Mervbot Stuff

mysql.zip - 248.97 KB
File downloaded or viewed 30 time(s)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Anon_EAGLE II
Guest


Offline

PostPosted: Sat Oct 08, 2005 4:48 pm    Post subject: Reply to topic Reply with quote

Thank you very much. This was annoying me. I should have asked you in the first place MMav. (bow down to master bot coder)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 78 page(s) served in previous 5 minutes.

phpBB Created this page in 0.477869 seconds : 31 queries executed (94.6%): GZIP compression disabled