Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Error loading Active X object in MM
This has probably been answered before, but I cant find info. I have a MM app/form that loads a TreeView and Imagelist control for navigation. It has worked flawlessly with VFP 6 and 7, however since recently upgrading to VFP 9 SP1, it crashes on the following line:
IF llOK
*-----------------------------------------
*--- Add the ActiveX control to the Parent
*-----------------------------------------
.Parent.AddObject(.cNewObjectName, .cClass, lcProgID)
ELSE
.
.
.
This = ImageListLoader
.cNewObjectName = "ImageList"
.cClass = "cImageList"
lcProgID = "MSComCtlLib.ImageListCtrl.2"
The error message is "Class definition cImageList is not found"
In reading VFP 9 help, it indicates that I should save a subclass of the ActiveX control to a VCX library. I am not sure what is meant by this. Also, would changing the base MM Framework class to use NewObject()instead of AddObject be a better solution? Thanks for any help
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement