By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,903 Members | 1,257 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,903 IT Pros & Developers. It's quick & easy.

.NET and unmanaged C++ communication

P: n/a
Hi,

I am developing a ASP.NET application which uses a 3rd party API that
is an unmanaged C++ DLL. The possible solutions that I have in mind to
build the .NET to C++ bridge:

1. Import the unmanaged C++ DLL in the .NET (C#) program and call the
functions as static entry points exposed by the DLL. This would be very
cumbersome as it wont let the .NET app have a Object Oriented design.
2. Build a COM wrapper using C++ around the unmanaged DLL and import
these COM components in the .NET project as a reference. There's still
an issue of converting C++ standard and custom data types to sth that
..NET understands. .NET interop would sure help marshalling standard
datatypes(string, int, char etc..) but what about the custom datatypes?

3. Code the .NET application in C++ and use the C++ API directly (or
through a COM layer as in point 2 above).

Personally I think approach 2 should be the best in terms of
application extensibility and maintainability.

Any pointers regarding this would be helpful.

Thanks

Nov 9 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"dydrmr" <vz******@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi,

I am developing a ASP.NET application which uses a 3rd party API that
is an unmanaged C++ DLL. The possible solutions that I have in mind to
build the .NET to C++ bridge:


Off-topic.Please see:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Regards,
Sumit.
--
Sumit Rajan <su****@msdc.hcltech.com>
Nov 9 '05 #2

P: n/a
Hi,

This has been re-posted @
http://groups.google.co.in/group/mic...48b78445a6bc8d

As the integration would require extensive C++ effort as well, comments
from users in this group are welcome.

Thanks

Nov 10 '05 #3

P: n/a
"dydrmr" <vz******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com
Hi,

This has been re-posted @
http://groups.google.co.in/group/mic...48b78445a6bc8d

As the integration would require extensive C++ effort as well,
comments from users in this group are welcome.

Thanks


You are in the wrong place. Your question is highly Microsoft specific,
which this group doesn't discuss. Try

microsoft.public.dotnet.languages.vc

--
John Carson

Nov 10 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.