General information
Category:
The Mere Mortals Framework
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only