Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

C++ .NET basic questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim H - 28 Mar 2005 19:41 GMT
If there is a site someone can point me to that answers such basic
questions, rather than taking up support's time posting answers, please let
me know.

I've developed C# .NET, unmanaged C++, and MFC applications.  I have not
written any C++.NET apps yet and have some very basic questions.

Are managed C++ programs fully independent executables or are they still
processed at run time like C# and vb.net apps are?  Is the finished product
MSIL?

Do C++.NET apps have the same performance as a standard C++ app.

Are managed C++ apps as susceptible to decompiling as C# and vb.net?

Thanks in advance,
jim
William DePalo [MVP VC++] - 28 Mar 2005 20:33 GMT
> Are managed C++ programs fully independent executables or are they still
> processed at run time like C# and vb.net apps are?  Is the finished
> product MSIL?

Well, your question answers itself. :-) "Managed C++" programs compile to
MSIL by definition.

The thing about the C++ compiler in the VS.Net package is that it is capable
of generating .obj files that get linked to PE formatted executables and
DLLs as VC++ v6 _OR_ it can just as well compile a dialect of C++ to MSIL.
Unlike the other compilers in VS.Net, MC++ is capable of interleaving
managed and native sections in the same module. This capability is why the
language is so well suited to interoperability tasks.

> Do C++.NET apps have the same performance as a standard C++ app.

There is _no_ easy answer to such a question. The only answer that is valid
in all cases is the very unsatisfying "it depends". :-)

> Are managed C++ apps as susceptible to decompiling as C# and vb.net?

Yes.

Regards,
Will
Gary Chang[MSFT] - 29 Mar 2005 08:12 GMT
Hi Jim,

Additionally to William's answer, if you discussed about the pure managed
C++ application(not the mixed managed/unmanaged code app), I think you can
take it as a .NET assembly directly, just as your C# program. Please take a
look at our MSDN doc for more information about managed C++ programming:

Managed Extensions for C++ Programming
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/ht
ml/vcManExMigrationGuidePart1_Start.asp

Thank!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ??C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
glich - 30 Mar 2005 19:20 GMT
I usaly find that the best info sorce is the VC++ Index itself. Other than
that MSDN (part of Microsoft I think) is very good at explaining librarys
that come whith the program. You can find them with a simple search from
the microsoft web site.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.