This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Accessing GCJ binaries from Visual Basic?
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Andrzej Bialecki <ab at getopt dot org>, java at gcc dot gnu dot org
- Date: Thu, 11 Aug 2005 10:13:28 -0500
- Subject: Re: Accessing GCJ binaries from Visual Basic?
- Reply-to: gnustuff at thisiscool dot com
Hi Andrew,
> > You can write a DLL wrapper around the gcj code and then call this
> > DLL from VB.
>
>I see. How would you communicate with it?
So:
- you write your Java/gcj code
- you create a C wrapper API around it which invokes
the Java code via CNI or JNI
- you build a shared library (DLL) which exports this
wrapper API
Visual Basic has language constructs which
allow for declaring stub functions which reference
the corresponding ones in the DLL. You then call
these functions from within VB code as you
would any other VB function.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/