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

[REBOL] Re: Understanding Library Access

From: robert:muench:robertmuench at: 22-Feb-2003 20:31

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] > On Behalf Of Paul Tretter > Sent: Saturday, February 22, 2003 6:44 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Understanding Library Access > Clear DayI'm still struggling with learning how to access > certain function of the winapi. Can someone provide some > comments in how they learned this process of using REBOL's > library access components.
Hi, I haven't done to much with it yet, but it's quite straight forward. It looke more complicated than it is.
> Maybe = even provide an example with comments.
Google for "Jeff Kreis" and Berkely DB, he has once done an interface to it. Good example.
> I get confused on when I need to = create a > struct! datatype and when I can just pass arguments with out > it.
AFAIK, you need to setup a struct if you need to pass a data-structure to the Interface. That is if the input to the WinAPI function is a pointer to a C struct. If the WinAPI accepts basic types (string, integer etc.) you just can pass them as value.
> And whether or not I need to provide all parameters of > the function in order for the function to work at all.
Yes, mostly you have to provide all parameters (and in the same order as the WinAPI specification). This link will be your friend for WinAPI stuff questions: http://msdn.microsoft.com/default.asp Robert