Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 1 of 24 1 2 3 23 24
MySQL dll #41617
02/25/05 19:28
02/25/05 19:28
Joined: Feb 2004
Posts: 174
Somwhere looking for plants
D
Destop Offline OP
Member
Destop  Offline OP
Member
D

Joined: Feb 2004
Posts: 174
Somwhere looking for plants
Here is a dll that permits to connect A6 with a MySQL database
Get it here

There is documentation and FULL source code (cause otherwise, you need to compile MySQL and mysql++ to get the libs)

I hope that you will find this usefull.
And feel free to send me a pm if this was usefull to you.
Destop

Re: MySQL dll [Re: Destop] #41618
02/26/05 02:01
02/26/05 02:01
Joined: Dec 2004
Posts: 32
England
A
AndyH Offline
Newbie
AndyH  Offline
Newbie
A

Joined: Dec 2004
Posts: 32
England
I have tried to use this in my project and I get:

Quote:

A6mysql.dll - no valid Acknex DLL




Here is what I do in main:

Code:
 function main()
{
ifdef server;
mysql_handle = dll_open("A6mysql.dll");
endif;

[snip]



I actually hit this barrier writing my own mysql.dll and thought it was my dll creation skills. What am I doing wrong when trying to use this dll please?

A6 commercial - 6.31.4

Andy

Re: MySQL dll [Re: AndyH] #41619
02/26/05 03:30
02/26/05 03:30
Joined: Jan 2004
Posts: 226
Deutschland
Konrad_Neitzel Offline
Member
Konrad_Neitzel  Offline
Member

Joined: Jan 2004
Posts: 226
Deutschland
Hmm ... I tried the DLL, too. I get the same error. And I have A6 Commercial 6.31.4, too.

I just checked the DLL I compiled on my own and I get the error message with that DLL, too.

Could it be, that the commercial version has a problem with loading DLLs?

Does the DLL work for some people?

Konrad


ICQ: 342-444-458 eMail: neitzel at neitzel.de
Re: MySQL dll [Re: Konrad_Neitzel] #41620
02/26/05 04:07
02/26/05 04:07
Joined: Jan 2004
Posts: 226
Deutschland
Konrad_Neitzel Offline
Member
Konrad_Neitzel  Offline
Member

Joined: Jan 2004
Posts: 226
Deutschland
Ok - it was my fault. The a6mysql.dll works fine now. I just tried it without the mysql Libs available. After installing mysql on my computer, the dll could be loaded without problems.

I installed the whole server - not sure, which DLLs are needed to use that DLL.

Hope that helps a little.

(But then I still don't know, why my DLL couldn't be loaded.)

Konrad

Edit: I should test more before posting You need the libmysql.dll! Just copy it into your project. Then you should be able to load the a6mysql.dll.

Last edited by Konrad_Neitzel; 02/26/05 04:10.

ICQ: 342-444-458 eMail: neitzel at neitzel.de
Re: MySQL dll [Re: Konrad_Neitzel] #41621
02/26/05 04:26
02/26/05 04:26
Joined: Dec 2004
Posts: 32
England
A
AndyH Offline
Newbie
AndyH  Offline
Newbie
A

Joined: Dec 2004
Posts: 32
England
Quote:

Edit: I should test more before posting You need the libmysql.dll! Just copy it into your project. Then you should be able to load the a6mysql.dll.




Fantastic! Many thanks, putting the libmysql.dll, from the mysql install directory (/bin), into my project directory solved this problem for me as well.

Many thanks again,

Andy

Re: MySQL dll [Re: AndyH] #41622
02/26/05 04:32
02/26/05 04:32
Joined: Jan 2004
Posts: 226
Deutschland
Konrad_Neitzel Offline
Member
Konrad_Neitzel  Offline
Member

Joined: Jan 2004
Posts: 226
Deutschland
Great, that I could help you. And with my quick test, I made the same error. My lib also needed 2 otehr DLLs to be loaded. Not my day

Konrad


ICQ: 342-444-458 eMail: neitzel at neitzel.de
Re: MySQL dll [Re: Konrad_Neitzel] #41623
02/26/05 05:30
02/26/05 05:30
Joined: Jul 2004
Posts: 328
The Netherlands
JvsJGameDesign Offline
Senior Member - banned
JvsJGameDesign  Offline
Senior Member - banned

Joined: Jul 2004
Posts: 328
The Netherlands
This DLL can be handy by creating a register page on your website to store data in a database, so you can let your game retreive information from the database.


Re: MySQL dll [Re: JvsJGameDesign] #41624
02/26/05 06:10
02/26/05 06:10
Joined: Nov 2000
Posts: 1,534
hamburg
Samb Offline
Serious User
Samb  Offline
Serious User

Joined: Nov 2000
Posts: 1,534
hamburg
I can only see "get" commandos
can this plugin also write in a databse?

Re: MySQL dll [Re: Samb] #41625
02/26/05 06:25
02/26/05 06:25
Joined: Dec 2004
Posts: 32
England
A
AndyH Offline
Newbie
AndyH  Offline
Newbie
A

Joined: Dec 2004
Posts: 32
England
By using mySQL_ExecQuery you can perform any legal query you want as though you were entering it directly into your MySQL client. eg.

mySQL_ExecQuery("INSERT INTO `players` (`name`) VALUES ('new_char')");

or

mySQL_ExecQuery("UPDATE `players` SET `passwd`='new_passwd' WHERE `name`='new_char'");

or

mySQL_ExecQuery("DELETE FROM `players` WHERE `name`='new_char'");

etc., etc.

This is an awesome contribution!

Andy

Re: MySQL dll [Re: Destop] #41626
02/26/05 06:42
02/26/05 06:42
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Is mySQL free? Where can I get it?

Page 1 of 24 1 2 3 23 24

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1