Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 204
Joined: 16 Oct 2001 23:01

MSHTML Com component error c504

Unread post by Tonton Luc »

Hi,

After to create a new MSHTML Com component in my VP 7.3 project, I've this type of error :
How to solve it ?
mshtml\export\dispHTMLDocument_export.pro(246,20) error c504: The expression has type 'comDomains::variant', which is incompatible with the type 'comDomains::comVariant'

Code: Select all

% dispHTMLDocument_impl.i : predicates     get_AlinkColor : (comDomains::comVariant HResult) -> core::hResult HResult procedure (o) language stdcall. predicates     dispHTMLDocument_get_AlinkColor : () -> comDomains::variant Value.   % dispHTMLDocument_export.pro : clauses     get_AlinkColor(Value) = VipHR000 :- % !!! error here on Value         try             Value = implementation_fact:dispHTMLDocument_get_AlinkColor(),             VipHR000 = winErrors::s_ok         catch TraceId do             VipHR000 = catchHandler(TraceId)         end try.   % dispHTMLDocument_native_binary.i : predicates     get_AlinkColor : (comDomains::comVariant HResult) -> core::hResult HResult procedure (o) language stdcall.
User avatar
Thomas Linder Puls
VIP Member
Posts: 1399
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Sorry, I must have missed this mail.

The generated code is (obviously) wrong.

However instead of fixing the code I suggest that you delete all those "export" files and their include directives that are not related to event listening.

I cannot remember how it is in the MSHTML, but I believe there are only a few interfaces related to event listening. I also believe they have names that are not starting with "i" and contains "Event".
Regards Thomas Linder Puls
PDC
Post Reply