Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Error Class Not Registered with mscomct2.ocx
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00662660
Message ID:
00662752
Vues:
12
Ok, I was able to solve this problem. Instead of having VFPMonthView defined in a PRG, I subclassed "MSComCtl2.MonthView" into a VCX. The net effect is that it stores the license information in the VCX. As a result, I don't get the "Class not Registered" error on the runtime workstation.

See KB article Q192693 for more information on how to subclass an oleclass into a VCX.

--Paul

>Hi:
>
>I downloaded datepick.zip[Developed by Bill Caton] from the UT that uses the mscomct2.ocx. However, I'm having problems with running this on a machine that does not have the developer license for mscomct2.ocx. Here is the error I get:
>
>
>OLE Error code 0x80040154: Class not Registered.
>
>
>The code fails in the CalDateMonth class of VfpDatePicker.vcx.
>
>Here is the line of source code it fails:
>
>
>.NEWOBJECT( "oleCalendar", "VFPMonthView", "MonthView.prg" )
>
>
>The runtime/test machine is Windows 2000 with VFP 7.0 sp1 runtime libraries. There are no problems in the development environment--only when I distribute my exe.
>
>So far, I have tried:
>
>(1) regsvr32 mscomct2.ocx
>(2) Unregistering and regegistering mscomct2.ocx
>(3) Reinstalled Windows 2000 two times -- this my staging test machine.
>(4) Viewed KB article Q192693 BUG: License Error with ActiveX Control Added at Run-Time.
>
>Does anyone have any other ideas that I can try?
>
>Thanks!
>
>--Paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform