Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a String to a DLL
Message
De
26/04/2001 10:44:47
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00499201
Message ID:
00500109
Vues:
27
>>>>What am I doing wrong?
>>>>
>>>>Stephane.
>>
>>>Have you tried declaring the paramater ByVal?
>>
>>>Is this DLL written in VB?
>>
>>This may seem like an obvious question, but do you have to register the DLL with windows?
>
>What kind of DLL is it?
>
>DLL that are to build on the COM specifications (like the ones build with VB) needs to be registered. Also, you can't «Declare» procedures from it, you need to set a reference to the component, to create an instance and use the instance:
>Dim X as new ComponentName.ClassName
>X.DoSomething

Ok, it's a dll written in straight C and it wasn't built on my computer. I tried registering the dll (using regsvr32) but I got the "no entry point" message. I almost always get this message to a point that I think that my "regsvr32" program is corrupted. So, I wouldn't mind the message.

Now, what do you mean when you say that I need to set a reference to the componenent?

Thanks again, Stephane.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform