Using COM components

G

Guest

Hi All,

Would anybody be able to help me on how to use COM components in vb.net?

I have a dll and would like to use the functions of the dll. Here are the
steps that I followed:
1. Register the dll
2. Add reference to the dll in the solution explorer

Is there a need to add import statement for the dll in code? Is the
following statement correct?
import <dllname>
or should it be
import <libname>

Thanks.
kd
 
C

Carlos J. Quintero [.NET MVP]

Imports are not needed, they are just to have the code more readable saving
the need for fully qualified type names. The statement is

Imports <namespace>

where <namespace> for COM DLLs is its ProgID
--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
C

Carlos J. Quintero [.NET MVP]

It is the one that you see in the Object Browser of VB6 when you add the
reference to a VB6 project, there is a combobox to filter ProgIDs.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top