Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registering COMCTL32.OCX (Class not registered Error)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00082010
Message ID:
00082209
Vues:
45
Etienne,

>I've used the Treeview control 5.0 (from Microsoft), and once I build the application, and move it to another workstation (NT to NT), it gives me an OLE error, saying that the class is not registered.
>
>I've tried redistributing the control with my project, and registering
>it manually, but it still doesn't work...
>
>I was wondering how I could solve this.

I have been around the block on this one and have discovered (after numerous hours and discussions with Doug Hennig!) that the only way to solve all the registration problems is to add the TreeView control to the form dynamically at runtime.

This is a royal pain and I wouldn't do it unless it was absolutely necessary...which it seems to be.

Here's what you need to do:

In a .prg file, define the TreeView class as shown in the following example:

DEFINE CLASS MyTreeView AS OleControl
OleClass = 'COMCTL.TreeCtrl'



ENDDEFINE
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform