473,408 Members | 2,813 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,408 software developers and data experts.

export of COM object to C++?

Here's my situation: I have a .NET (C#) dll (COM 1) which contains a
reference to another COM library (COM 2). I also have a C++ program which
accesses COM 1 via Interop. I want to include a routine in the interface to
COM 1 which accesses an interface defined in COM 2. How do I do this?? I
have done something similar in the case where my COM 1 was written in C++ by
aggregating the interface to access the interface of COM 2.
Jul 21 '05 #1
2 1213
I suggest you modify .NET DLL COM 1 to include a new interface that refers
to COM 2 and use that from C++ dll.

Cheers
Richard

"Trokey" <ma********@hotmail.com> wrote in message
news:bm************@ID-203151.news.uni-berlin.de...
Here's my situation: I have a .NET (C#) dll (COM 1) which contains a
reference to another COM library (COM 2). I also have a C++ program which
accesses COM 1 via Interop. I want to include a routine in the interface to COM 1 which accesses an interface defined in COM 2. How do I do this?? I
have done something similar in the case where my COM 1 was written in C++ by aggregating the interface to access the interface of COM 2.

Jul 21 '05 #2
What do you mean by "refers to"? I already tried putting a routine in an
existing interface (ICOM1IF) which returns an object of type COM2.ObjectA.
On the C++ side, this translates to a return type of ObjectAPtr, which is
unusable and generates compile errors (ICOM1IF::ObjectAPtr : missing
storage-class or type specifiers).

"Richard Burte" <rb****@online.microsoft.com> wrote in message
news:uN**************@TK2MSFTNGP10.phx.gbl...
I suggest you modify .NET DLL COM 1 to include a new interface that refers
to COM 2 and use that from C++ dll.

Cheers
Richard

"Trokey" <ma********@hotmail.com> wrote in message
news:bm************@ID-203151.news.uni-berlin.de...
Here's my situation: I have a .NET (C#) dll (COM 1) which contains a
reference to another COM library (COM 2). I also have a C++ program which accesses COM 1 via Interop. I want to include a routine in the interface to
COM 1 which accesses an interface defined in COM 2. How do I do this?? I
have done something similar in the case where my COM 1 was written in

C++ by
aggregating the interface to access the interface of COM 2.


Jul 21 '05 #3

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

Similar topics

1
by: steve | last post by:
hi, during a full export of my export of a (Release 9.2.0.4.0 - Production ) database i'm getting the following: I have been thru metalink, and can find nothing that is exactly the same, even...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
1
by: Steven | last post by:
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException ...
3
by: nologin | last post by:
Is it possible to export data exposed by DataView to Excel file for example ? Seba
0
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable...
5
by: Simon | last post by:
Dear reader, With the export command you can export a query to Excel. By activate this command a form pop's up with the following text:
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
2
hemantbasva
by: hemantbasva | last post by:
Note We need to have a template on server for generating report in multiple sheet as we do not had msoffice on server moreover this require a batch job to delete excel file created by the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.