using .dll in a Class Library

Lucrezia

New member
Joined
Aug 12, 2010
Messages
1
Programming Experience
1-3
Hi,
this is my first time in the forum, I hope to be clear.
I have to create a Class Library in VB.NET 2003 (and not other) using a .dll already existed.
I’ve load this .dll in the Reference of my Class Library but I can’t use their objects.
Instead, if I create a Windows Form Apllication, I can load the .dll both in the Reference and in the Form, and in this case I can use their objects.
The question is: Is there in the Class Library a step to do in order to be able to use an existed .dll?
I’ve tried to look on web and I find something about Interface and Interoperability, but without an exhaustive example.
Anyone could help me? Thanks in advance!

Lu
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,334
Location
Norway
Programming Experience
10+
I’ve load this .dll in the Reference of my Class Library but I can’t use their objects.
Why not I wonder? There's no reason you can't, since you can reference and use it in other project I mean. Perhaps you have problems finding the namespaces? Open the Object Browser and have a look how it's layed out, you can use 'view in Object Browser' context menu option on the reference in Solution Explorer.
 
Top Bottom