This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Accessing GCJ binaries from Visual Basic?


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/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]