Errors in TypeBrowser generated code

David Hay <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Hi,

I have some errors that appear in the code that the TypeBrowser generates -
 the class is almost blank, and just has the following:

public class Globals
{
 public static final GUID = "";


 public void GetEngineObject()
 {

 }

 public void DeinitializeEngine()
 {

 }

}

The XML in the TypeBrowser is as follows:

<module name="Globals" description="xxx" helpFile="xxx"
helpReference="400" projectName="XXX" libraryFileName="XXX.tlb"
packageName="com.lexmark.olympus.action.ocr.jawin"
saveDirectory="c:\dev\olympus\prototype\src" javaEncoding="">
 <function name="GetEngineObject" description="yyy"
helpFile="yyy.chm" helpReference="1100" invokeKind="DISPATCH_METHOD"
functionKind="FUNC_STATIC" paramCount="4" optionalParamCount="0"
vTableOffset="0">
  <return propertyType="25" typeName="int"
typeString="VT_HRESULT" typePointer="VT_PHRESULT" javaString="int"
javaObjectType="java.lang.Integer" javaSignature="V"
javaNativeString="jint" javaNativeArray="jintArray" cppString="DWORD"
cppDirect="VTS_HRESULT" cppPointer="VTS_PHRESULT">
   <idl flag="null"/>
  </return>
  <parameter name="DeveloperSN" type="8" typeName="String"
typeString="VT_BSTR" typePointer="VT_PBSTR" javaString="String"
javaObjectType="java.lang.String" javaSignature=""
javaNativeString="jstring" javaNativeArray="jobjectArray"
cppString="CComBSTR" cppDirect="VTS_BSTR" cppPointer="VTS_PBSTR">
  </parameter>
  <parameter name="Reserved1" type="8" typeName="String"
typeString="VT_BSTR" typePointer="VT_PBSTR" javaString="String"
javaObjectType="java.lang.String" javaSignature=""
javaNativeString="jstring" javaNativeArray="jobjectArray"
cppString="CComBSTR" cppDirect="VTS_BSTR" cppPointer="VTS_PBSTR">
   <modifier flag="NONE"/>
   <modifier flag="IN"/>
   <modifier flag="OPT"/>
   <modifier flag="HAS_DEFAULT"/>
   <idl flag="null"/>
  </parameter>
  <parameter name="Reserved2" type="8" typeName="String"
typeString="VT_BSTR" typePointer="VT_PBSTR" javaString="String"
javaObjectType="java.lang.String" javaSignature=""
javaNativeString="jstring" javaNativeArray="jobjectArray"
cppString="CComBSTR" cppDirect="VTS_BSTR" cppPointer="VTS_PBSTR">
   <modifier flag="NONE"/>
   <modifier flag="IN"/>
   <modifier flag="OPT"/>
   <modifier flag="HAS_DEFAULT"/>
   <idl flag="null"/>
  </parameter>
  <parameter name="Engine" type="26" typeString="VT_PTR"
typePointer="VT_PPTR" javaString="void" javaObjectType="java.lang.Object"
javaSignature="V" javaNativeString="jobject"
javaNativeArray="jobjectArray" cppString="void*" cppDirect="VTS_PTR"
cppPointer="VTS_PPTR">
   <pointer type="26" typeString="VT_PTR"
typePointer="VT_PPTR" javaString="void" javaObjectType="java.lang.Object"
javaSignature="V" javaNativeString="jobject"
javaNativeArray="jobjectArray" cppString="void*" cppDirect="VTS_PTR"
cppPointer="VTS_PPTR">
    <pointer type="26"
typeString="VT_USERDEFINED" typePointer="VT_PVARIANT" javaString="Object"
javaObjectType="java.lang.Object" javaSignature=""
javaNativeString="jobject" javaNativeArray="jobjectArray"
cppString="COleVariant" cppDirect="VTS_VARIANT" cppPointer="VTS_PVARIANT">
    </pointer>
   </pointer>
   <modifier flag="NONE"/>
   <modifier flag="OUT"/>
   <modifier flag="RETVAL"/>
   <idl flag="null"/>
  </parameter>
 </function>
 <function name="DeinitializeEngine" description="zzz"
helpFile="zzz.chm" helpReference="1101" invokeKind="DISPATCH_METHOD"
functionKind="FUNC_STATIC" paramCount="0" optionalParamCount="0"
vTableOffset="0">
  <return propertyType="25" typeName="int"
typeString="VT_HRESULT" typePointer="VT_PHRESULT" javaString="int"
javaObjectType="java.lang.Integer" javaSignature="V"
javaNativeString="jint" javaNativeArray="jintArray" cppString="DWORD"
cppDirect="VTS_HRESULT" cppPointer="VTS_PHRESULT">
   <idl flag="NONE"/>
  </return>
 </function>
</module>

Does anyone know what the problem is, and if there is a workaround?

many thanks,

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.