Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error loading Active X object in MM
Message
From
28/06/2006 16:12:23
Steven Kleypas
Tarrant County College District
Texas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Error loading Active X object in MM
Miscellaneous
Thread ID:
01132568
Message ID:
01132568
Views:
60
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
Map
View

Click here to load this message in the networking platform