JBoss with Visual Basic |
Type library generation is made of Java introspection and COM interfaces generation. Sun provides a tool called typelibgen to create the COM Type Library. Bug or not, I was unable to use it with the -jar option. Note that this tool is only a Java class. So I made my batch : convert.bat.
These files are the Type Library for the Remote and the Home interfaces of the EJB. Note that the Type Library generation registers automaticaly the TypeLib in the registry. Launch Visual Basic. Create a new project. Choose Standard EXE Application.
Go the Project/References menu. Select the following references (Figure 2) :
In the default form, create two label controls, two text control and one button. The second text control must have its MultiLine attribute set to true. The form should look like Figure 3. Double-click on the button to access the code. The source code should look like the Figure 4. Launch your application. You should see the application as shown in Figure 5. Close your eyes, press the button and... The result should be the Figure 6. Yeah, it works !!! |
The informations below are given without any
warranty of any kind. |