Hi!
As I understand it, you could for example have a JavaBean that have a method setValue(SomeObject a). You should alse be able to send events between the VB app and the JavaBean. You could for example listen to when a VB button gets clicked in your Java code.
Regards
Johan
Not directly.
So-called primitive data types and some types of
arrays can be passed through the bridge. These
primitive types are the ones that are basic Variant types.
Structures (as defined by sth similar to struct)
cannot be passed since they are not ole automation compatible, a COM criterion. Makes sense, too, since what would your Java code do with it? Transform it into a class with fields? Use it as a byte array?
For passing complex data types: either use COM classes and create JCW (java callable wrapper) wrappers for them so that they can be used by your Java code (-> here I recommend the tool JacoZoom by InfoZoom,
check out http://www.infozoom.de)
or write some JNI code to translate the struct into an instance of a corresponding class that you defined to match the structure of the struct.
Sylvia
Johan,
is there any samples available where a bean is utilized in Visual Basic?
Also how exactly does this work?
I create bean fine(still reading up on it) but then what?
Any links or pointers on where to get the information for proceeding is highly welcome.
Thanks in advance,
Ramkumar