Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hi,

I have an application which has three layers

1. ASP.Net application (C#)
2. C++ Manged
3. C++ Native

C++ Native has all the intellegnce and algorithm, and C++ Managed is wrapper, so it should be easily work with C# code. My application is working well when we are working on desktop. Now we want to expose C++ Managed code (which is wraper for C++ Native) as web service. It works fine till it goes throuh .Net code, but as soon as native code started executing web service stopped working.

For this problem I already posted a question, here[^].

Now, from the aswers for above questions it is obivous that native code will not work with web service.

Now I am planning for DCOM server to expose my library. I am going on correct path, or do you have some other suggestion?

Please let me know if you need more details.

Happy Programming.
Posted
Comments
Sergey Alexandrovich Kryukov 22-Jun-12 22:46pm    
First of all, there is no such thing as "Managed C++" anymore (do you mean "managed"), and in fact, never was: it is called "Managed extensions". If was found to be unsuccessful, superseded with C++/CLI, standardized under ECMA-372.
If you are using "manages extensions", you are wasting your time too badly.
Besides, why COM/DCOM? Actually, both manages extensions and C++/CLI are designed to avoid it very well.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900