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.
"Herfried K. Wagner [MVP]" wrote:
[color=blue]
> "sm" <sm@discussions .microsoft.com> schrieb:[color=green]
> > What is the syntax to create an instance of a class present
> > in a wrapper dll?[/color]
>
> What wrapper DLL?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>[/color]
"sm" <sm@discussions .microsoft.com> schrieb:[color=blue]
> 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.[/color]
Did you try to instantiate the classes exposed by the wrapper DLL? It's
very similar to working with normal .NET classes.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
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
"Herfried K. Wagner [MVP]" wrote:
[color=blue]
> "sm" <sm@discussions .microsoft.com> schrieb:[color=green]
> > 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.[/color]
>
> Did you try to instantiate the classes exposed by the wrapper DLL? It's
> very similar to working with normal .NET classes.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>[/color]
Comment