logo       

Passing pointers to longs: msg#00159

programming.swig

Subject: Passing pointers to longs


I was under the impressoin that SWIG had some basic handling built into it for things like the following:

/* C code */
extern char getInt32(unsigned long *value);

But when I try to compile java against it, I get:

Main.java:13: getInt32(SWIGTYPE_p_unsigned_long) in Object cannot be applied to (long)
System.out.println(Object.getInt32(value));
^
Where value is defined in Java as:

long value;


What am I doing wrong?



+==========================================================+
Brian N. Hawley bhawley@xxxxxxxxxxx
Luminex Software, Inc. http://www.luminex.com
PO Box 5908 voice: 909-781-4100 x112
Riverside, CA 92517 fax: 909-781-4105
+==========================================================+


_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise