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

[REBOL] specifying struct! in routine!

From: anton::lexicon::net at: 13-Aug-2002 1:36

Hello, anyone know how to specify a structure in a routine definition? Example console session:
>> make routine! [lpNetResource [struct!]] mpr "WNetUseConnectionA"
** Script Error: Invalid argument: struct! ** Near: make routine! [lpNetResource [struct!]] mpr "WNetUseConnectionA" I have defined a structure that I want to pass in: NETRESOURCE: make struct! [ dwScope [integer!] ; Long dwType [integer!] ; Long dwDisplayType [integer!] ; Long dwUsage [integer!] ; Long lpLocalName [string!] lpRemoteName [string!] lpComment [string!] lpProvider [string!] ] none ; (no initial values) Can anyone give any clues? This is for mapping a network drive in windows. Anton.