If you choose to use late binding (the VB6 client currently uses late binding) you need to change the constructor according to the following table.
If you want to use the .NET Framework runtime environment, then your constructor line is:
For CEWindowsAPI:
Set mobjLinc = CreateObject("LINCEnvironment. dotNET.1")
For CEWindowsAPIJavaStyle:
Set mobjLinc = CreateObject("LINCEnvironment.JavaStyledotNET.1")
If you want to use the Java runtime environment, then you need to further decide which JVM you want to use (and have installed).
For the JVM, use:
For CEWindowsAPI:
Set mobjLiFor CEWindowsAPIJavaStyle:nc = CreateObject("LINCEnvironment.JavaSUN.1")
For CEWindowsAPIJavaStyle:
Set mobjLinc = CreateObject("LINCEnvironment.JavaStyleJavaSUN.1")
For the Jintegra JVM, use:
For CEWindowsAPI:
Set mobjLinc = CreateObject("LINCEnvironment.JavaJIntegra.1")
For CEWindowsAPIJavaStyle:
Set mobjLinc = CreateObject("LINCEnvironment.JavaStyleJavaJIntegra.1")
If you choose to use the CEWindowsAPI interface, you need to examine and change every method call that is made for the variables defined as 'as object'.
Refer to Old Call to New Call Reference for a cross-reference from old to new calls.
Note: For Late Binding, the compiler is unable to verify the method calls. If they are incorrect, they only fail at runtime.
If you choose to use the CEWindowAPIJavaStyle interface, you should not have to change any of the method calls, as they are the same as the Java interface.
One change that you must make is in the way that the Log object is created.
Originally, the Log object had it's own registration and Program ID. This did not work well with the JVM, so a new getLogObject() method was introduced to the LINCEnvironment class. You should make sure that you use the new way of getting the Log object, as the old way does not work any more. (the new way works with all Component Enabler runtime environment and/or JVM combinations)
For example,
Set mobjLog = mobjLinc.GetLogObject()
after you have created the LINCEnvironment object.