News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Adding a Package
Author Message
art
Junior Member
**


Posts: 7
Group: Registered
Joined: Sep 2008
Status: Offline
Reputation: 0
Post: #1
RE: Adding a Package

I think you just copy lua5.1.dll in your directory without msvcr80.dll,
But make sure lua5.1.dll from lua-5.1.2 version.

It work with any murgaLua version, but i don't know why if i have more than one callback, example in button1 and button2 both have callback, causing problem (error in murgaLua.exe).

This is my script and error message in attachment, test.lua=
=====================================================
require "luasql.mysql"

function connection()
env = assert(luasql.mysql())
con = assert(env:connect ("mydb","root","superuseradmin","localhost","3306"))
str = "select 1 from dual"
q = assert(con:execute (str))
num = q:numrows()
msg:label(num)
q:close()
con:close()
env:close()
end

window = fltk:Fl_Double_Window(100, 100, 800, 600, "Test")
button1 = fltk:Fl_Button(10, 10, 150, 25, "Test Connection")
button1:callback(connection) -- <= callback 1
msg = fltk:Fl_Box(20, 10, 600, 25)
button2 = fltk:Fl_Button(10, 40, 150, 25, "Test Connection2")
button2:callback(connection) -- <= callback 2 cause error, if i remove this callback not causing error

window:show()
Fl:scheme("plastic")
Fl:run()
=====================================================

JohnM or everyone can help?



Attached File(s) Thumbnail(s)
   
11-21-2008 10:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Adding a Package - asafp - 04-01-2008, 05:47 AM
RE: Adding a Package - JohnMurga - 04-01-2008, 07:22 AM
RE: Adding a Package - asafp - 04-01-2008, 08:43 AM
RE: Adding a Package - mikshaw - 04-01-2008, 11:04 AM
RE: Adding a Package - asafp - 04-01-2008, 01:21 PM
RE: Adding a Package - briss - 09-03-2008, 05:35 PM
RE: Adding a Package - asafp - 10-16-2008, 03:44 AM
RE: Adding a Package - art - 11-21-2008 10:38 AM
RE: Adding a Package - mikshaw - 11-24-2008, 02:25 AM
RE: Adding a Package - asafp - 11-25-2008, 07:31 AM
RE: Adding a Package - Juergen - 11-25-2008, 09:00 AM
RE: Adding a Package - asafp - 11-25-2008, 09:33 AM
RE: Adding a Package - Juergen - 11-25-2008, 09:54 AM
RE: Adding a Package - asafp - 11-25-2008, 11:22 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: