Machsupport Forum
Mach Discussion => Mach4 General Discussion => Mach4 Videos => Topic started by: smurph on February 14, 2019, 11:45:42 PM
-
https://www.youtube.com/watch?v=BtzPPv1WNZQ
-
Hello,
Thanks but this don't work in the current Mach4 as the LUA used is 5.3. This is fine for LUA 5.1 only.
-
?? What build are you running? The current modules are for LUA 5.3
lua53.dll
Import Address Table: 0x00014154
Import Name Table: 0x0001A648
Time Date Stamp: 0x00000000
Index of first forwarder reference: 0x00000000
Steve
-
Hello and thanks for your reply. I am running Mach 4 at build level 4.2.0.4517
Just curious, where did you download luasql. I cannot find a version for 5.3.
Thanks!
-
No worries, connect to mysql using mysql driver and returned an error on require: %1 not a win32 application.
Defined an ODBC 32 bits datasource, then changed driver in LUA code to luasql.odbc and voila, works just fine.
So the problem is that the libmysql.dll is 64 bits versus 32 bits. So will go ODBC instead.
Thanks!
-
Hello and thanks for your reply. I am running Mach 4 at build level 4.2.0.4517
Just curious, where did you download luasql. I cannot find a version for 5.3.
Thanks!
I got the luasql source and compiled the modules. As with all of the modules in the modules directory. They are custom made for the Mach LUA version and Mach 4 environment (module directory).
Steve