Page 1 of 1

Mozilla ActiveX example won't compile

Posted: 2 May 2007 12:28
by John Garland2
I don't actually need this code at the moment, but I thought I'd report the following observation:

While looking at the IE Custom control package, I noticed the Mozilla version as well. When I try to compile the Mozilla control package, I get the following warning:

C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\inteface\testForm.pro(89,5) : warning c654: Unused local predicate 'testForm::onEditLoseFocus/1 (i)'
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\inteface\testForm.pro(91,5) : See also


When I then try to run the example from the menu the program terminates with the following dump (I'm using 7004 CE):



========================================
Dump: 2007/05/02 09:54:16
----------------------------------------
Exception: regdb_enotreg_Exception (com/visual-prolog/com/exceptionHandling/exceptionHandling_exception)

Class not registered

Parameters:
HRESULT code = 2147746132
HRESULT hex code = 80040154
hresultDescription = Class not registered
Predicate name = createInstance
Component class identifier = {1339B54C-3453-11D2-93B9-000000000000}
Pointer to iUnknown interface = 00000000
List of class contexts = 3
Interface identifier = {00000112-0000-0000-C000-000000000046}

raised() 2007/05/02 09:54:16
ThreadId=3544
Module: com/visual-prolog/com/comCreation $JustDate: 2006-08-25 $$Revision: 2 $

C:\Program Files\Visual Prolog 7.0\pfc\exception\exception.pro(113)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\VIP7Kernel.dll (0x14008454)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\testMozillaCtrl.exe (0x004A6B72)
C:\Program Files\Visual Prolog 7.0\pfc\com\exceptionHandling\comExceptionCheck.pro(430)
C:\Program Files\Visual Prolog 7.0\pfc\com\exceptionHandling\comExceptionCheck.pro(409)
C:\Program Files\Visual Prolog 7.0\pfc\com\exceptionHandling\comExceptionCheck.pro(405)
C:\Program Files\Visual Prolog 7.0\pfc\com\comSupport\comCreation.pro(24)
C:\Program Files\Visual Prolog 7.0\pfc\com\activeXContainer\oleControlContainerSite.pro(174)
C:\Program Files\Visual Prolog 7.0\pfc\com\activeXContainer\oleControlContainerSite.pro(67)
C:\Program Files\Visual Prolog 7.0\pfc\com\activeXContainer\oleControlContainerSite.pro(111)
C:\Program Files\Visual Prolog 7.0\pfc\com\activeXContainer\oleControlContainerSite.pro(83)
C:\Program Files\Visual Prolog 7.0\pfc\com\activeXcontainer\activeXContainer.pro(115)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\mozillaCtrl\mozillaCtrl.pro(47)
C:\Program Files\Visual Prolog 7.0\pfc\gui\Window.pro(833)
C:\Program Files\Visual Prolog 7.0\pfc\gui\Window.pro(1203)
C:\Program Files\Visual Prolog 7.0\pfc\gui\drawWindow.pro(425)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\VIP7Kernel.dll (0x140086B5)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x153216E0)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x153158BC)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x15316F7D)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x15325C4C)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x15325B92)
C:\Program Files\Visual Prolog 7.0\pfc\vpi\vpi.pro(1179)
C:\Program Files\Visual Prolog 7.0\pfc\gui\controls\controlSupport\userControlSupport.pro(57)
C:\Program Files\Visual Prolog 7.0\pfc\gui\guisupport\containerWindowSupport.pro(49)
C:\Program Files\Visual Prolog 7.0\pfc\gui\Window.pro(833)
C:\Program Files\Visual Prolog 7.0\pfc\gui\Window.pro(1203)
C:\Program Files\Visual Prolog 7.0\pfc\gui\drawWindow.pro(425)
C:\Program Files\Visual Prolog 7.0\pfc\gui\Dialog.pro(131)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\VIP7Kernel.dll (0x140086B5)
C:\Documents and Settings\John\My Documents\Visual Prolog 7.0 Examples\testMozillaCtrl7\testMozillaCtrl\Exe\vip7vpi.dll (0x153216E0)

Posted: 2 May 2007 13:02
by Kari Rastas
Seems that you have not installed the Mozilla ActiveX component or it is not registered orderly. Or maybe you have a newer Mozilla ActiveX component than I used when making the example (if I remember correct it was version 1.5 and now the newest seems to be 1.7.12).

http://www.iol.ie/~locka/mozilla/control.htm

Posted: 2 May 2007 13:49
by Thomas Linder Puls
I don't think that "version difference" will give this kind of problem.

Normally, never versions of "something" implements the "old" components (maybe plus some new ones). Otherwise, upgrading "something" would break other applications.

The other applications may of course change behavior anyway when some component is upgraded and in worst case they may indeed break. But it is not normal that they break by "Class not registered".

Notice that a COM component class may have some nice human sensible name, but the real "name" is its id:

Code: Select all

Component class identifier = {1339B54C-3453-11D2-93B9-000000000000}
This is the "name" that is used when trying to locate it on the computer.

This ID is looked-up in the registry, the registry tells which file to load in order to get and instance of the component class. And this file can be version x or version y.

Posted: 6 Aug 2014 10:08
by Tonton Luc
Hi,

Where can I found this sample : testMozillaCtrl7 ?