Javabeans - Active X Packager -- Dispatch Error
Hello Everyone
I tried to pack a class containing a simple method
e.g:
public class Test
{
public String getName()
{
String name = "humanbeing";
return name;
}
}
I used Visual Cafe with Jdk1.3 to get a jar file and used the Javabeans-ActiveX bridge to get
1. Test.tlb
2. Test.reg files
When i Opened VisualBasic, i used the references to look for my tlb files and added the Test.tlb file
In the Object Viewer, i was able to see the method getName.
I wrote a simple VB prog,
with the Click event,
Dim obj As Test.Test
Dim Str As String
set obj = New Test.Test
Str = obj.getName
MsgBox Str
End sub
==========================================
When i compiled, it went fine, but when i tried executing i got a run time Error
"Method getName of Object TestDispatch failed"
==========================================
I don't have any clue to what is happening.
Can i not use a bean to include all my methods to be used via VB?
Help me guys...
Thanks
sai_karthik

