I am doing a small project in college, and my project manager knows only visual basic 6. He insists on using only VB6. I am very good at java and want to use java for core functionality and VB6 only for user interface.
J-Integra can do this, but it is not free, and JCom (sourceforge) is apparently designed to access COM objects, such as VB6, from Java, and not in a different way around. Also somewhere I am red, using javareg.exe , I can register Java classes as COM and access as shown below, but I could not find javareg.exe anywhere.
Java class:
public class MyTest { public int myfunction(int value1, int value2) { return value1 + value2; } }
B. B.
Private Sub Command1_Click() Set x = CreateObject("MyTest") MsgBox x.myfunction(500, 500) End Sub
Does anyone know how I can do as above?
source share