Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5 ImageList Control Issue
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
VFP 5 ImageList Control Issue
Miscellaneous
Thread ID:
01167506
Message ID:
01167506
Views:
128
Hello,

I am working on a project that uses VFP 5.

The OCX are defined and added to the form in PRG code (as opposed to the GUI control or VCX).

I did not use AciveX in my "one" VFP 5 project back in `98. I included an image list thusly (I am using the SP 6 version OCX with VFP 5 - is that okay?):
oForm.addobject('IL','Olecontrol','MSComctlLib.ImageListCtrl.2')
* I did not implement a DEFINE CLASS

When I run under VFP 5 the error reports an invalid class when the toolbar is being instanciated:
.imagelist=oImageList &&(passed by reference as oform.IL)
Yesterday - after much time and all those "insert control" dialogs - it worked with VFP 5. This morning I got the above error.

It runs perfect in VFP 6.

Is there an issue with VFP 5 and OCX 6? Or - is the message telling me I need to use a visual or VCX class (instead of PRG code)?

I have not checked for VFP 5 service packs (yet).

Regards
Imagination is more important than knowledge
Next
Reply
Map
View

Click here to load this message in the networking platform