473,545 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COM+ DLL and Managed C++

Hi all,

We have a set of VC6 ATL COM+ objects. We want to expose these
natively as .NET objects.
Can we simply convert the VC6 projects to VC7, change the build to
support managed extensions and add a C++ CLR managed class that passes
on method calls to our ATL COM+ object?

Note, this is all in the same DLL.

I have tried this, but now the normal C++ clients to our ATL COM+ dll
are failing to find the object.
Is it possible to have both COM+ objects and CLR objects in the same
DLL and allow clients to call either object?

If not, what are our options? Should we create a new CLR managed C++
DLL instead of putting everything into the same DLL?

Thanks for the help,
Charles.
Nov 16 '05 #1
0 1291

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

Similar topics

1
947
by: JC | last post by:
How does garbage collection work in C# and VB.NET for data returned from COM object? For example, a COM object written in C++ returns a SAFEARRAY to C# or VB.NET, will this SAFEARRAY (mapped to type in C# or VB.NET) be garbage collected? Similarily, if C# or VB.NET pass SAFEARRAY to the COM object via COM method invocation, will this...
1
741
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking aftwerwards with ILDASM at what is visible in those assemblies from a managed point-of-view I've noticed that: 1) for each managed and unmanaged C function (not C++ classes) I get a public managed static method...
3
1506
by: Mike | last post by:
I have been developing ASP applications for quite a while now. Most of the apps that I deploy are a typical n-tier setup. ASP GUI on a web server, Business and Data Components written in VB6 running in COM+ on a separate server with the SQL database residing on its own server. I don't really use COM+ for the transactions but more for the...
1
1987
by: Nadav | last post by:
Hi, Introduction *************** I have a system build of a collection of 'Native COM objects' and '.NET COM interop' objects, all of the COM objects are managed through a 'Native COM' layer, this layer manage the underlying COM Objects and upon request, provide a pointer to those objects to the 'API Consumer', following is an illustration of...
0
959
by: Francis Tsui | last post by:
We have a COM object implemented using managed C++. When the COM object is loaded from unmanaged code it works fines. However when we try to use the managed COM object through some unmanged code and COM interop from ASP.Net, we often get a DllNotFound Exception. I've read about some problem with managed COM objects causing problems if...
5
2705
by: apm | last post by:
Any and all: Is there an efficient way to pass a large array from .NET to COM? Can references (or pointer) be passed from COM to NET and NET to COM without the object it refers to being copied? Thanks in advance. David
8
3079
by: Nadav | last post by:
Hi, Introduction: ********************* I am writing a mixed mode application I have a COM module and a .NET module that communicate with each other. The COM exposes a custom sink interface, the .NET module implement the Sink interface ( IUnknown based ) and the COM call the methods of this interface asynchronously.
1
1467
by: c guan | last post by:
I have a simple Managed C++ wrapper built around an *existing* C++ interactive application. I can access the Managed C++ application classes from a VB .NET or C# client and the GUI part works as expected. I am using VS .NET 2002 (.NET framework v1.0.3705) for building my Managed C++ application on a Windows XP Professional (version 2002)...
3
2457
by: simon.duvall | last post by:
Hey all, Was referencing various COMs, and tried using the Windows Genuine Advantage 1.0 Type Library. There's a cool method called GetMachineDetails() that I wanted to try, but for some reason I'm getting an ACCESS DENIED HRESULT error when I do. Here's my code:
3
1732
by: iyengar.sheshadri | last post by:
Hi All, Currently we have COM component(dll) implemented using ATL. Because of the current business requirements, we would like to rewrite the COM component in Managed C++ and the clients will be unmanaged C++ and C# . I have been searching net to find some sample code and but could not get it.
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
5972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4945
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.