Java object in VB - ActiveX Bridge

A

Abraham Khalil

Here's an example -
Have a method in one of my main class bean called

public MailBean getMessage(int number) {
}

and MailBean has the methods of a message to getSubject, recipients
etc

I've package my main bean class that's using getMessage method as a
jar then create dll
Same concept with MailBean class. All my bean classes implements
Serializable just in case...

The problem is how do I use the MailBean java object in VB?
Tried with late binding as:

Private objMyBean As Object
Set objMyBean = CreateObject("MyBean.Bean") // Main bean class

// Now in MyBean class has method of getMessage that returns another
bean object
// How to do this part?

Tried...
Dim objMailBean As Object
Set objMailBean = objMyBean.getMessage(1)

Getting some Automation error trying to access getSubject method of
the objMailBean object
For some reason it doesn't recongize objMailBean as a MailBean.Bean
object? Any ideas?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top