This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

windrop & mysql

Discussion of Eggdrop's code and module programming in C.
Post Reply
r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

windrop & mysql

Post by ryal »

Id like to use a database with my windrop, so i searched for over and over without anything to be found.
Doesnt a compiled version exist for windows ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Precompiled what exactly?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
T
T-Xorcist
Halfop
Posts: 47
Joined: Mon Nov 14, 2005 6:36 pm
Location: Netherlands
Contact:

Post by T-Xorcist »

I guess he means a precompiled MySQL module for windrop 8)
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

Post by ryal »

oh my! i tried this (mysqltcl) a long time ago and couldnt manage to get it to work.
Today i tried again and it works like a charm (musta done something wrong back then).
THX!
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

ryal wrote:oh my! i tried this (mysqltcl) a long time ago and couldnt manage to get it to work.
Today i tried again and it works like a charm (musta done something wrong back then).
THX!
Practice makes perfect? :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
r
ryal
Voice
Posts: 35
Joined: Thu May 12, 2005 6:10 pm

Post by ryal »

Clearly! I think that the first time i tried to implement it i forgot to define a variable ($dir) and couldnt find the error :)
r
raktivist
Voice
Posts: 15
Joined: Tue Nov 22, 2005 9:08 am

Post by raktivist »

ryal wrote:Clearly! I think that the first time i tried to implement it i forgot to define a variable ($dir) and couldnt find the error :)
anyone can answer.. how do u define the dir variable on pkgIndex.tcl??

Code: Select all

proc loadmysqltcl { dir } { 
    set oldcwd [pwd]
    cd $dir
    load libmysqltcl[info sharedlibextension]
    cd $oldcwd
}

package ifneeded mysqltcl 3.02 [list loadmysqltcl $dir]
w/c line shld i change.. pls show an example...
thanks in advance!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

The dir is passed as a parameter into the loadmysqltcl proc. If you want to change it, change it from where the proc is being called.
K
Kappa007
Voice
Posts: 38
Joined: Tue Jul 26, 2005 9:53 pm

Post by Kappa007 »

Just for info on mysql/windrop module:

I think it could be difficult as windrop is built with Cygwin/GCC.
You'd need a Cygwin/GCC version of the client library of mysql.
The library that ships with mysql for windows is not build with GCC and thus does not work.
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

I just compiled mysql.mod under cygwin. I don't have anything to test it against, but you could give it a try: ftp://barkerjr.net/pub/irc/eggdrop/modu ... .win32.zip
Post Reply