PC Review


Reply
Thread Tools Rate Thread

Creating a object of a wrapper dll class

 
 
=?Utf-8?B?c20=?=
Guest
Posts: n/a
 
      20th Oct 2004
Hi,

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

Thanks in advance
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Oct 2004
"sm" <(E-Mail Removed)> schrieb:
> What is the syntax to create an instance of a class present
> in a wrapper dll?


What wrapper DLL?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
=?Utf-8?B?c20=?=
Guest
Posts: n/a
 
      20th Oct 2004

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:

> "sm" <(E-Mail Removed)> schrieb:
> > What is the syntax to create an instance of a class present
> > in a wrapper dll?

>
> What wrapper DLL?
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Oct 2004
"sm" <(E-Mail Removed)> schrieb:
> 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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

 
Reply With Quote
 
=?Utf-8?B?c20=?=
Guest
Posts: n/a
 
      23rd Oct 2004

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:

> "sm" <(E-Mail Removed)> schrieb:
> > 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.
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Giving one managed wrapper class access to the unmanged part of another managed wrapper class mschuck Microsoft VC .NET 1 31st Aug 2006 05:27 PM
How to write a managed wrapper class for a unmanagedDialog class in VC++? 2yuexue Microsoft VC .NET 0 23rd Aug 2006 09:03 PM
creating an umanaged object in a managed wrapper JRoe Microsoft C# .NET 2 8th Feb 2005 11:43 PM
Problems with a wrapper class for session object (revisited) John Mullin Microsoft ASP .NET 1 9th Nov 2004 01:22 PM
Creating a New Object Class Dave Ruhl Microsoft Access 2 13th Apr 2004 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.