Suite a ma publication précedente et aussi parceque le problème d'ocx non licencié à l'air de revenir assez souvent dans le forums sans recevoir de réponse . voici le lien sur le site support de microsoft pour résourdre ces problémes.
L'origine du problème :
Il existe trois package de VB6 : initiation, pro et une entreprise. Chaque package est livré avec un certain nombre d'ocx :
ActiveX Control FileName Version Edition
-------------------------------------------------------------------------
ADO Data Control 6.0 MSADODC.OCX 6.00.8171 L,P,E
Chart Control 6.0 MSCHRT20.OCX 6.00.8177 P,E
Comm Control 6.0 MSCOMM32.OCX 6.00.8169 P,E
Common Dialog Control 6.0 COMDLG32.OCX 6.00.8169 L,P,E
Data Bound List Controls 6.0 DBLIST32.OCX 6.00.8169 L,P,E
DataGrid Control 6.0 SDATGRD.OCX 6.00.8169 L,P,E
DataList Controls 6.0 MSDATLST.OCX 6.00.8169 L,P,E
DataRepeater Control 6.0 MSDATREP.OCX 6.00.8169 P,E
FlexGrid Control 6.0 MSFLXGRD.OCX 6.00.8169 L,P,E
Hierarchical FlexGrid Control 6.0 MSHFLXGD.OCX 6.00.3005 L,P,E
Internet Transfer Control 6.0 MSINET.OCX 6.00.8169 P,E
MAPI Controls 6.0 MSMAPI32.OCX 6.00.8169 P,E
Masked Edit Control 6.0 MSMASK32.OCX 6.00.8169 P,E
Multimedia Control 6.0 MCI32.OCX 6.00.8169 P,E
PictureClip Control 6.0 PICCLP32.OCX 6.00.8169 P,E
RemoteData Control 6.0 MSRDC20.OCX 6.00.8169 E
Rich Textbox Control 6.0 RICHTX32.OCX 6.00.8169 L,P,E
SysInfo Control 6.0 SYSINFO.OCX 6.00.8169 P,E
Tabbed Dialog Control 6.0 TABCTL32.OCX 6.00.8169 L,P,E
Windows Common Controls-3 6.0 COMCT332.OCX 6.00.8169 P,E
Windows Common Controls 5.0 (SP2) COMCTL32.OCX 6.00.8022 L,P,E
Windows Common Controls 6.0 MSCOMCTL.OCX 6.00.8177 L,P,E
Windows Common Controls-2 5.0 (SP2) COMCT232.OCX 6.00.8022 L,P,E
Windows Common Controls-2 6.0 MSCOMCT2.OCX 6.00.8177 L,P,E
Winsock Control 6.0 MSWINSCK.OCX 6.00.8169 P,E
L = Learning Edition
P = Professional Edition
E = Enterprise Edition
Si vous avez comme moi une version base, en chargeant des sources venant de version pro ou entreprise vous vous retrouvez avec le message
Le controle n'a pas ete cre parcequ'il n'est pas correctement licenciéZmême si vous avez récupéré le fichier ocx manquant.
Dans mon cas c'était mscomm32.ocx .
J'ai donc récupéré le fichier je l'ai mis dans system32 et j'ai lancé la commande
<Path to RegSvr32>\REGSVR32.EXE /u <Path to OCX>\OCXFILE.OCX
comme indiqué sur le site microsoft .
Ensuite j'ai téléchargé les deux fichiers :
http://download.microsoft.com/download/vb60ent/Sample30/1/W9XNT4/EN-US/VB6CLI.EXE
et http://download.microsoft.com/download/VB60Pro/Install/2/Win98/En-US/VBUSC.exe
j'ai exécuté les exe et le problème a été résolu .