Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Late/Early-binding difference?
Message
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
COM, DCOM et OLE automation
Titre:
Late/Early-binding difference?
Divers
Thread ID:
00557572
Message ID:
00557572
Vues:
48
I can't figure out what's going on but my remote COM+ DLL doesn't work in early-binding even if "References" have been checked in the project properties, only late-binding. Here's the code:

Early-binding with "References" set:

Dim U As New clsUser
Dim RS As Recordset
Dim robjUserData As UserData
Dim robjUserData As Object

Set robjUserData = New UserData
Set RS = robjUserData.VerifyLogin(strLoginID, strPassword)
....

I get an error "Run-time error '48': Error loading DLL" whereas below code works:

Late-binding:

Dim U As New clsUser
Dim RS As Recordset
Dim robjUserData As Object

Set robjUserData = CreateObject("QZipData.UserData")
Set RS = robjUserData.VerifyLogin(strLoginID, strPassword)
....

Why????? TIA.
It's "my" world. You're just living in it.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform