Creating a object of a wrapper dll class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

What is the syntax to create an instance of a class present in a wrapper dll?

Thanks in advance
 
I mean the wrapper dll which is created automatically when a COM object is
dropped on to a form.

I am want to use the COM control in a console application. I copied the
wrapper dlls created in a windows application to the obj directory in the
console application. The bottom line is I need to access the members of the
control.

Don't know how to go about it...any help would be greatly appreciated.

Thanks.
 
sm said:
I mean the wrapper dll which is created automatically when a COM object is
dropped on to a form.

I am want to use the COM control in a console application. I copied the
wrapper dlls created in a windows application to the obj directory in the
console application. The bottom line is I need to access the members of
the
control.

Did you try to instantiate the classes exposed by the wrapper DLL? It's
very similar to working with normal .NET classes.
 
An attempt to intiantiate the class exposed by the wrapper dll, shows syntax
error on the class exposed!

After adding a reference to the dlls. I have the following code:

Imports AxabcOCX

Module Module1
Friend WithEvents Axabc1 As New AxabcCX.Axabc
....
....
End Module

The above shows error on AxabcCX.Axabc
 

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

Back
Top