473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Creating a object of a wrapper dll class

sm
Hi,

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

Thanks in advance
Nov 21 '05 #1
4 1645
"sm" <sm@discussions.microsoft.com> 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/>
Nov 21 '05 #2
sm

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" <sm@discussions.microsoft.com> 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/>

Nov 21 '05 #3
"sm" <sm@discussions.microsoft.com> 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/>

Nov 21 '05 #4
sm

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" <sm@discussions.microsoft.com> 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/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Edvard Majakari | last post by:
Hi, I was wondering what would be the most elegant way for creating a Python class wrapper for a command line utility, which takes three types of arguments: 1. options with values (--foo=bar)...
2
by: JRoe | last post by:
Hello, I am beside myself with this problem. I need to access unmanged C++ code in a C# environment. I have created a managed C++ wrapper that wraps the unmanaged class. When I call the...
15
by: Carlos Lozano | last post by:
Hi, What is the right way to create an OCX COM component. The component is already registerred, but can't create an instance. I am using the reference to the interop module created. If I use...
4
by: Stephen | last post by:
Hi I am currently developing a web application that has a third party component on it. The third party component is a graph component from Xceed that uses a number of dlls. The problems occur...
8
by: Oenone | last post by:
Is it possible to create an object which can have methods and properties, but which can also be treated as a string? I'm trying to create a wrapper around the IIS Request.Form object which...
16
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
1
by: Andrew Brampton | last post by:
Hi, I'm using Boost::thread and when constructing the thread object I need to pass a Function Object so that the new thread is spawned by calling this object's operator(). So I have classes like...
0
by: PracticalApps | last post by:
I looked to find a canned solution to create a Word document in my application and just couldn't find anything that just gets to the point. I would think, and I may be making too strong of an...
9
by: =?Utf-8?B?RWR3YXJkUw==?= | last post by:
I would greatly appreciate some help on passing managed object into unmanaged code. I need to pass a reference (address of) of a managed class into unmanaged code (written by a thrid party). The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.