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

PN: Managed C++ and Unmanaged C++

Hi All,
I'm interested in the opinion of an expert or two on managed C++.net.

I've been writing cross platform C++ (win/unix) for some ETL tools I
use with clients. All the code is 'unmanaged' as I originally wrote
it in VC++ 6.

I've just completed my first managed code program. I also bought the
book VC++.NET 'Step by Step' Version 2003 and been reading that as
fast as I can. So all this 'managed code' and .net features of C++ are
new to me. I have written vb.net code and read a lot on vb.net and
ado.net.

On first reading it looks to me like:

1. VC++.NET is very closely tied to the win operating system.
2. It is not a trivial process to have unmanaged and managed code
inside the one large batch program.
3. If I was going to convert my code to C++.NET I would be re-writing
it, and then it will not work on unix.
So, it looks to me like the best thing to do is if I want to avail
myself of .net functions I should write code that is only intended to
run on windows and have all the code be 'managed code'. My other code
I should keep a separate copy to run on unix.

Or does someone out there know something about C++.net portability to
unix that I don't know about?

Thanks

Peter Nolan
www.peternolan.com
Nov 16 '05 #1
1 1402
At this time, I'd say your conclusions are basically sound, but see

http://msdn.microsoft.com/visualc/ho...a/default.aspx

at some future time, you'll likely be able to run "managed C++" on
non-Windows platforms.

-cd

Peter Nolan wrote:
Hi All,
I'm interested in the opinion of an expert or two on managed C++.net.

I've been writing cross platform C++ (win/unix) for some ETL tools I
use with clients. All the code is 'unmanaged' as I originally wrote
it in VC++ 6.

I've just completed my first managed code program. I also bought the
book VC++.NET 'Step by Step' Version 2003 and been reading that as
fast as I can. So all this 'managed code' and .net features of C++ are
new to me. I have written vb.net code and read a lot on vb.net and
ado.net.

On first reading it looks to me like:

1. VC++.NET is very closely tied to the win operating system.
2. It is not a trivial process to have unmanaged and managed code
inside the one large batch program.
3. If I was going to convert my code to C++.NET I would be re-writing
it, and then it will not work on unix.
So, it looks to me like the best thing to do is if I want to avail
myself of .net functions I should write code that is only intended to
run on windows and have all the code be 'managed code'. My other code
I should keep a separate copy to run on unix.

Or does someone out there know something about C++.net portability to
unix that I don't know about?

Thanks

Peter Nolan
www.peternolan.com

Nov 16 '05 #2

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

Similar topics

1
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...
1
by: Eric Twietmeyer | last post by:
Hello, I'm starting to investigate cs, managed c++ and interoperating with a very large unmanaged code base. We are going to use Windows Forms (written in cs) to replace our old fashioned GUI. ...
5
by: Chris Kiechel | last post by:
I am writing a .NET Windows application and it needs to perform DDE calls to a legacy system. I created a C++ unmanaged class that performs the actual DDE connection and communication. However,...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
3
by: Thorsten | last post by:
HI I'm a C# developer and unfortunately I have to write now some code in managed and unmanaged C++. In this area I'm Newbie and therefore please forgive me if this is a really simple...
13
by: bonk | last post by:
Hello, I am trying to create a dll that internally uses managed types but exposes a plain unmanaged interface. All the managed stuff shall be "wrapped out of sight". So that I would be able to...
12
by: doug | last post by:
I understand the basics of what managed code offers and that you open yourself up to security issues if you allow unmanaged code. We already have a decent amount of VB6 code to include COM DLLs. ...
6
by: nicolas.hilaire | last post by:
Hi all, i'm not totally clear with some concepts about managed and unmanaged code. I'm asking myself some questions : - i've a MFC app, i want to use the framework dotnet by switching to...
9
by: Amit Dedhia | last post by:
Hi All I have a VC++ 2005 MFC application with all classes defined as unmanaged classes. I want to write my application data in xml format. Since ADO.NET has buit in functions available for...
25
by: Koliber (js) | last post by:
sorry for my not perfect english i am really f&*ckin angry in this common pattern about dispose: ////////////////////////////////////////////////////////// Public class...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.