Re: Dll help

new topic     » goto parent     » topic index » view thread      » older message » newer message

> ?How can you know what kind of parameters you need in a c function?

    Microsoft Platform SDK

> ?Or is it always the same couple of parameters you need?

   NO

> ?If a pointer points to a buffer. What can the buffer be.

    Allocated space in memory and an atom value that points to it.

    Good thing about Euphoria is you make that choice,

    for instance a very basic example:

    Structures:

    constant rectLeft = 0,
                  rectTop  = 4,
                  rectRight  = 8,
                  rectBottom = 12,
                 SIZEOF_RECT = 16

    atom rect
    rect = allocate(SIZEOF_RECT)

    now rect is the location in memory where rectLeft starts and will be
SIZEOF_RECT in bytes.

    example:

    to fill the structure rectTop with a value I would do this

    poke4(rect + rectTop, value) or poke4(rect + 4, value)

    I can read from the structure later if I want to retrieve the rectTop value

    peek4s(rect + rectTop) or peek4s(rect + 4)


> And how can i change the buffer.

    The above is an example of how to poke values into place

>
> And maybe can someone help me with the Ishelllink. Especially the
> function GetPath.
>

    not sure I know what it is your talking about here. perhaps someone else
will.


Hope this helps some >

EUMAN
euman at bellsouth.net

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu