28 Nov 13:00
Re: Welcome to the "Swig-user" mailing list
From: Bilger, Matthias <Matthias.Bilger <at> ict-se.de>
Subject: Re: Welcome to the "Swig-user" mailing list
Newsgroups: gmane.comp.programming.swig
Date: 2008-11-28 12:00:41 GMT
Subject: Re: Welcome to the "Swig-user" mailing list
Newsgroups: gmane.comp.programming.swig
Date: 2008-11-28 12:00:41 GMT
Hi,
I have to use a DLL from Java using JNI (JNA will not work < Java 1.4). So I have to write a WrapperDLL offers me a
JNI Interface to the DLL. The problem is a function like this:
int myProblemFunction(int inInt, myStruct** mst)
The struct looks like this:
typedef struct _mStruct{
int var1;
int var2;
void* pointer;
} myStruct;
Is the only way to get the function working (using SWIG) to write a typemap? Or is there an easy to use solution
for this problem?
BTW: what would you call mst? Doublepointer?
Thanks a lot,
Best regards
Matthias Bilger
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
(Continue reading)
RSS Feed