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

Understanding Library Access

 [1/2] from: ptretter::hotmail::com at: 22-Feb-2003 11:43


Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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. Maybe even provide an example with comments. I get confused on when I need to create a struct! datatype and when I can just pass arguments with out it. And whether or not I need to provide all parameters of the function in order for the function to work at all. Thanks, Paul Tretter --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 -- Binary/unsupported file stripped by Listar -- -- Type: image/jpeg -- File: Clear Day Bkgrd.JPG

 [2/2] from: robert:muench:robertmuench at: 22-Feb-2003 20:31


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]
<<quoted lines omitted: 6>>
> 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

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted