Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error using DLL-call
Message
 
À
07/09/2001 15:09:23
GW Gross
{Banned by Information Security Policy}
Lake Mary, Floride, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00553653
Message ID:
00554206
Vues:
20
>>>>A VB DLL cannot be "Declared".
>>>>
>>>>You seem to have created it correctly. In your new project, you need to set a reference to your component (Project->References menu item), then you can use it this way:
>>>>
dim x as project1.YourClassName
>>>>Set x = new project1.YourClassName
>>>>x.GeefNaam
>>>
>>>
>>>Eric,
>>>
>>>This confused me a little. How do I know when to use a Declare (like with the Windows APIs) and when to use a reference/set x = new combination? They both appear to be referencing dlls.
>>
>>There are 2 kinds of DLL:
>>-Regular DLL;
>>-Automation/OLE DLL.
>>
>>If you can register a DLL, it is the second kind and in this case only, you use the Declare to use it. The compiler determines the kind of DLL.
>
>
>Eric, thanks for clearing that one up.
>
>Now the next question: Can you create an Automation/OLE dll from VB or is C++ the only way?
>
>Thanks,
>
>BTW: I don't seem to be able to give you "stars" since I wasn't the orginator, but here are a few: * * *


VB can only create Automation / OLE DLL. C can generate regular (plain) DLL.

Thanks for the *.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform