How to pass an array of objects from C++ to Java using JNI

From: Alex (alexkuznet_at_yahoo.com)
Date: 11/30/04

  • Next message: Mike B: "Re: strange problem"
    Date: 29 Nov 2004 17:41:00 -0800
    
    

    I need to pass from C++ to Java using JNI
    an array of orbitrary number of objetcts,
    each object consists of a string and a float.

    All suggestions are really appriciated!
    Thanaks


  • Next message: Mike B: "Re: strange problem"

    Relevant Pages

    • JNI: Passing array of objects from C++ to Java
      ... I need to pass an array of orbitrary number of objetcts ... that consists of a string and a float. ...
      (comp.lang.java.programmer)
    • Re: weird problem
      ... I already told you that the comparison between an integer and a float ... to strcmpwhich expects a pointer to a string. ... And now a question about something else: why do you use floating ... int,float, char, etc. ...
      (comp.lang.c)
    • Re: inconsistent behavior of >FLOAT
      ... empty string, strings with leading and trailing blanks. ... I think it is too late for>FLOAT to rescind the strong suggestion in its spec that this "should" be the case. ... As long as the spec is tightened to require that a string of blanks must be treated as a valid zero, a programmer would know to filter such a case, if needed, before it is passed to>FLOAT. ... I think ignoring leading and trailing blanks may be reasonable for>FLOAT, as long as it does not violate the current spec. ...
      (comp.lang.forth)
    • Re: weird problem
      ... I already told you that the comparison between an integer and a float ... And now a question about something else: why do you use floating ... use then to copy a float into a char *1. ... binary representation doesn't resemble a string like "123.46343" ...
      (comp.lang.c)
    • Re: How to marshall "pointer to pointer"
      ... UInt16 Layer, ByteInstanceName, float X, float Y, BytePath, IntPtr ... DstPath); ... IntPtr and pass it it Marshal.PtrToStringBSTR() to get this string. ...
      (microsoft.public.dotnet.framework.compactframework)