Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error using DLL-call
Message
From
07/09/2001 15:09:23
GW Gross
{Banned by Information Security Policy}
Lake Mary, Florida, United States
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00553653
Message ID:
00554009
Views:
19
>>>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: * * *
GW Gross

"You are blessed when you're content with just who you are - no more, no less." Matthew 5:5 (The Message)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform