473,383 Members | 1,840 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,383 software developers and data experts.

C# C++ integration

Hello,

I am a novice in the .net platform. Please help in this.
I have a C++ application which, now will have to be integrated in to
ASP.net for a web application. I understand that .NET Framework
programs can access native code libraries by means of static DLL entry
points.
I would like to know if there are any other means wherein the asp web
application can use the c++ code.

Thanks in advance,
Narmatha

Jan 3 '06 #1
5 1409
you could compile the C++ code into a normal managed .NET dll instead of a
native dll by specifying the /clr switch.
that way your ASP .NET application could use that .NET dll without having to
support an interface to a native dll.

right click on your project, select configuration properties -> general and
set 'use managed extensions' to yes.

see
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vccore/html/vcrefEECOMCompilation.htm
for more details.

kind regards,
Bruno.
<na**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I am a novice in the .net platform. Please help in this.
I have a C++ application which, now will have to be integrated in to
ASP.net for a web application. I understand that .NET Framework
programs can access native code libraries by means of static DLL entry
points.
I would like to know if there are any other means wherein the asp web
application can use the c++ code.

Thanks in advance,
Narmatha

Jan 3 '06 #2
na**********@gmail.com wrote:
I have a C++ application which, now will have to be integrated in to
ASP.net for a web application. I understand that .NET Framework


get Visual C++ 2005 Express for free
http://msdn.microsoft.com/vstudio/ex...d/default.aspx
and try to compile your code as C++/CLI and see if it works. You will
need to update "class" to "ref class" whenever you want to see it (type
definition) in ASP.NET. Be aware that "ref class" is not C++ , it is
different language called C++/CLI which is backward-compatible with C++
.. It's similar story like C and C++ : almost all programs written in C
(C++) are valid when compiled as C++ (C++/CLI) , but C++ (C++/CLI)
programs are not valid C (C++) .
B.
Jan 3 '06 #3
Thanks a lot for the replies.

There is another question in this regard.
Will the performance of the C++ application deteriorate when C++ code
is compiled as a normal managed dll.

Jan 4 '06 #4
there should be little to no difference in application performance.

kind regards,
Bruno.

"na**********@gmail.com" wrote:
Thanks a lot for the replies.

There is another question in this regard.
Will the performance of the C++ application deteriorate when C++ code
is compiled as a normal managed dll.

Jan 4 '06 #5
na**********@gmail.com wrote:
There is another question in this regard.
Will the performance of the C++ application deteriorate when C++ code
is compiled as a normal managed dll.


You do not know until you try. Performance, especially in C++, is fuzzy
issue that depends on many things like code, compilatio options, usage
patterns etc. It is estimated that you might lose few %, but you might
as well gain something, as managed heap in .NET is faster than
non-managed one (this comes at the cost of lost of freedom of using
pointers).
B.
Jan 4 '06 #6

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

Similar topics

0
by: Wolfgang Keller | last post by:
Hello, Python seems to be used quite a lot for (the integration of) enterprise applications. Just as an example, there are at least three (projects for the implementation of) ERP systems in...
4
by: Dan | last post by:
Hello all. I am currently working on a project for several Hospitals. The application is written in Java, and the database is either Oracle or MySql, depending on the client. For a while now,...
0
by: Wayan | last post by:
Geekcorps Volunteer - Systems Integration Kenya, East Africa Geekcorps http://www.geekcorps.org is in search of systems integration professionals experienced in developing communication systems...
0
by: Magic1812 | last post by:
Magic Software invites you to join us this coming Tuesday (January 13th, 2004) at 12:00 EDT / 17:00 GMT for a FREE live Webinar: Title: Accelerated Application Integration and Information...
0
by: Magic1812 | last post by:
Magic Software invites you to join us this coming Tuesday (January 13th, 2004) at 12:00 EDT / 17:00 GMT for a FREE live Webinar: Title: Accelerated Application Integration and Information...
0
by: S Arnold | last post by:
Date: June 24, 2004 Time: 4:00 PM - 5:00 PM (GMT +01:00) Presenter: Richard Curtis Description: iBOLT, Magic's comprehensive EAI and BPM suite was recently described by VP Strategic Services...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
3
by: gb | last post by:
We are in the process of upgrading part of a large system to .NET, whilst the majority will remain ASP. Sharing session state information will not be a problem at the moment as it is trivial and...
0
by: Stylus Studio | last post by:
Hey Everyone, A new podcast entitled: Business-to-Business Data Integration in a SOA World was just released by ZapThink. The key speakers in the podcast are the following: ZapThink...
1
by: YellowfinTeam | last post by:
Marketplace: Yellowfin reporting 3.1 with BIRT Integration Yellowfin is proud to announce the release of 3.1. The major theme of this release is enhanced integration capability. We have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.