Re: Errors in TypeBrowser generated code
Roger I Martin PhD <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
The output is advanced for IDispatch base interfaces. The coclass stuff
has not been developed but there are stylesheets that can have
implementation increased. The marshaling of Jawin is not far enough for
it though.
David Hay wrote:
>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
>
>
>