Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active X component cannot create an object !
Message
De
05/06/1998 12:57:04
 
 
À
05/06/1998 10:08:31
Information générale
Forum:
Visual Basic
Catégorie:
VBScript
Divers
Thread ID:
00105124
Message ID:
00105224
Vues:
32
>Hello,
>
>I created an Active X Dll an register it with 'regsvr32'. It's ok, but when i use the 'CreateObject' to instanciate the class which is in the Dll, then the following error appear : "Active X component cannot create the object".
>Is there someone who known how to resolve this problem ?
>
>Thanks in advance.

Afin d'utiliser un DLL ActiveX dans une application VB il faut:
1-Ajouter une référence au DLL (menu projet/références)
2-Déclarer une variable: DIM X as MyObj.MyClass
3-Instancier l'objet: Set X = New MyObj.MyClass

Voilà.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform