Share

Jawin

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

passing a struct* pointer to a DLL function

You are viewing a single message from this topic. View all messages.

  1. 2009-03-31 21:09:28 UTC
    Hi everyone!

    I'm trying to use a DLL function wich needs a struct pointer as a param,
    the function returns an integer value (0) if it's correctly executed or any other if not,
    and uses de struct pointer to assign the related values.

    I've been searching all over the web, but I haven't found anything.
    Could any one give me a hand?

    p.d.

    I'm trying with:

    NakedByteStream nbs = new NakedByteStream();

    LittleEndianOutputStream leos = new LittleEndianOutputStream(nbs);

    // here should be the struct

    byte[] result = functionNeeded.invoke("????", #, nbs, null, ReturnFlags.CHECK_NONE);

    LittleEndianInputStream leis = new LittleEndianInputStream(new ByteArrayInputStream(result));

    // here, the code to get the values of the struct members after passing by the functionNeeded


    Help!!!!
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.