Results 1 to 2 of 2
  1. #1
    Sanjeev is offline Member
    Join Date
    Jul 2011
    Rep Power

    Default Equivalent code in Java native access(JNA)? Type casting of Pointer to java

    C code is;
    void *value // some how it is getting initialized
    char* data = (unsigned char*) value;

    In java I used
    Pointer value; //some how it is getting initialized
    String data = ????
    what equivalent code should I write using JNA library?


  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power


    Just a guess, but value.getObject() and value.getString() look worthy of investigation. (I'm assuming you are referring to

Similar Threads

  1. why java does not compile to native code?
    By docesam in forum New To Java
    Replies: 43
    Last Post: 11-25-2010, 04:54 PM
  2. Replies: 2
    Last Post: 03-18-2010, 01:39 PM
  3. Connection to DLL using Java Native Access
    By cowboy in forum New To Java
    Replies: 1
    Last Post: 01-23-2010, 09:43 PM
  4. Java Native Access (JNA) return types of void *
    By burnumd in forum Advanced Java
    Replies: 5
    Last Post: 01-15-2010, 01:09 AM
  5. Replies: 7
    Last Post: 11-20-2009, 04:02 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts