I try to create a com component from PDFConverter *.tlb and when I compile I've this error :
In iApp_export.pro :error c504: The expression has type 'comDomains::variant', which is incompatible with the type 'comDomains::comVariant'
Code: Select all
clauses
getPreferenceEx(ComNType, Value /*error here*/) = VipHR000 :-
try
Value = implementation_fact:iApp_getPreferenceEx(ComNType),
VipHR000 = winErrors::s_ok
catch TraceId do
VipHR000 = catchHandler(TraceId)
end try.
Code: Select all
predicates
getPreferenceEx : (core::integer16 NType, comDomains::comVariant HResult) -> core::hResult HResult procedure (i,o) language stdcall.
Code: Select all
predicates
getPreferenceEx : (core::integer16 NType) -> comDomains::variant Value.
Code: Select all
clauses
getPreferenceEx(NType) = ReturnValue :-
[comDomains::variant(ReturnValue)] = invokeMethodWithOutput("GetPreferenceEx", [comDomains::in(comDomains::short(NType))]),
!.
getPreferenceEx(_) = _ :-
com_exception::raise_wrongNumberOfOutputVariables(classInfo, predicate_name()).
Code: Select all
predicates
iApp_getPreferenceEx : (core::integer16 NType) -> comDomains::variant Value.