Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: [books] Pre-release of Chapter 5 of Rebol - A programmer's guide

From: nick::guitarz::org at: 4-Jul-2008 14:58

Oops, in copying and pasting from the C example, I included a bunch of typos in that last post. Forgot to take out the commas here: mysql-connect conn, "localhost" "root" "PASSWORD" "mysql" 0, "", 0 Should be more like: mysql-connect conn "localhost" "root" "PASSWORD" "mysql" 0 "" 0 Also, the parameter names in the routine definition should be different, and it should be integer! instead of int!: mysql-connect: make routine! [ return: [integer!] parameter1 [integer!] ; not sure of this type parameter2 [string!] parameter3 [string!] parameter4 [string!] parameter5 [string!] parameter6 [integer!] parameter7 [string!] parameter8 [integer!] ] lib "mysql_real_connect" Hehe, probably obvious typos, but just in case ... :) Quoting Nick Antonaccio <nick-guitarz.org>: