Accessing GCJ binaries from Visual Basic?
Mohan Embar
gnustuff@thisiscool.com
Thu Aug 11 15:13:00 GMT 2005
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/
More information about the Java
mailing list