Connecting Tech Pros Worldwide Help | Site Map

C++ .NET basic questions

Jim H
Guest
 
Posts: n/a
#1: Nov 17 '05
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++]
Guest
 
Posts: n/a
#2: Nov 17 '05

re: C++ .NET basic questions


"Jim H" <jimh@nospam.nospam> wrote in message
news:uK$ozW8MFHA.1172@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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?[/color]

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.
[color=blue]
> Do C++.NET apps have the same performance as a standard C++ app.[/color]

There is _no_ easy answer to such a question. The only answer that is valid
in all cases is the very unsatisfying "it depends". :-)
[color=blue]
> Are managed C++ apps as susceptible to decompiling as C# and vb.net?[/color]

Yes.

Regards,
Will


Gary Chang[MSFT]
Guest
 
Posts: n/a
#3: Nov 17 '05

re: C++ .NET basic questions


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/de...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...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

glich via DotNetMonster.com
Guest
 
Posts: n/a
#4: Nov 17 '05

re: C++ .NET basic questions


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.

--
Message posted via http://www.dotnetmonster.com
Closed Thread