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.