Click here to Skip to main content
16,017,755 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Suggestion: Subject Matter Editors Pin
Jeffrey Walton3-Jun-07 9:28
Jeffrey Walton3-Jun-07 9:28 
QuestionNTFS Alternate Data Streams Pin
Akin Ocal2-Jun-07 10:26
Akin Ocal2-Jun-07 10:26 
AnswerRe: NTFS Alternate Data Streams Pin
Mark Salsbery2-Jun-07 15:17
Mark Salsbery2-Jun-07 15:17 
Questionlog10 ( 3/2 ) = 0.000 Help me! :( [modified] Solved Pin
Immunity182-Jun-07 8:14
Immunity182-Jun-07 8:14 
AnswerRe: log10 ( 3/2 ) = 0.000 Help me! :( [modified] Solved Pin
Christian Graus2-Jun-07 21:55
protectorChristian Graus2-Jun-07 21:55 
Questionmanaged/unmanaged code Pin
includeh102-Jun-07 6:09
includeh102-Jun-07 6:09 
AnswerRe: managed/unmanaged code Pin
Sathesh Sakthivel2-Jun-07 7:39
Sathesh Sakthivel2-Jun-07 7:39 
AnswerRe: managed/unmanaged code Pin
Mark Salsbery4-Jun-07 6:19
Mark Salsbery4-Jun-07 6:19 
...or this article

Managed Extensions for C++ Programming[^]

It's not another language. It's an extension to Microsoft's C++ which allows you to use the
Common Language Runtime and the .NET framework.

Managed code is not compiled to processor machine code like regular C++ is. It is compiled to
an intermediate language that can run on an implementation of the Common Language Infrastructure
(CLI). At runtime, the intermediate language code is compiled to CPU-specific machine code and
executed. On a Windows machine with the .NET framework installed, this is done by the Common
Language Runtime (CLR), which is Microsoft's implementation of CLI.

In order for this to be possible from C++, it was necessary to extend the language to be able to
work with the common data types of the CLI specification and to work with the managed, garbage-
collected heap of the .NET framework.

The biggest impact IMO with managed C++ programming is with managed pointers. Objects allocated
on the managed heap can be moved at any time by the runtime. Objects allocated with malloc/new
don't move - that's what we're used to as C++ programmers. Also, managed objects are
automatically destroyed by the runtime.This means there's rules to follow when mixing managed and
unmanaged C++ code (mixed-mode programming).

Mark






"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

Questionquestion about function InterlockedIncrement() Pin
includeh102-Jun-07 5:50
includeh102-Jun-07 5:50 
AnswerRe: question about function InterlockedIncrement() Pin
Mark Salsbery2-Jun-07 6:00
Mark Salsbery2-Jun-07 6:00 
AnswerRe: question about function InterlockedIncrement() Pin
toxcct2-Jun-07 6:02
toxcct2-Jun-07 6:02 
Generalnot really Pin
includeh102-Jun-07 7:04
includeh102-Jun-07 7:04 
GeneralRe: not really Pin
Mark Salsbery2-Jun-07 8:16
Mark Salsbery2-Jun-07 8:16 
GeneralRe: not really Pin
includeh102-Jun-07 16:47
includeh102-Jun-07 16:47 
GeneralRe: not really Pin
Mark Salsbery3-Jun-07 9:07
Mark Salsbery3-Jun-07 9:07 
QuestionFatal Error Pin
mahesh.mundackal2-Jun-07 2:55
mahesh.mundackal2-Jun-07 2:55 
QuestionRe: Fatal Error Pin
Rajesh R Subramanian2-Jun-07 3:18
professionalRajesh R Subramanian2-Jun-07 3:18 
AnswerRe: Fatal Error Pin
S Douglas2-Jun-07 19:49
professionalS Douglas2-Jun-07 19:49 
AnswerRe: Fatal Error Pin
Hamid_RT2-Jun-07 20:31
Hamid_RT2-Jun-07 20:31 
QuestionAligning Toolbars Pin
Anurag Gandhi2-Jun-07 2:23
professionalAnurag Gandhi2-Jun-07 2:23 
QuestionProblem in Inserting ActiveX Control in SDI Pin
S_Murali2-Jun-07 2:03
S_Murali2-Jun-07 2:03 
GeneralRe: Problem in Inserting ActiveX Control in SDI Pin
Rajesh R Subramanian2-Jun-07 2:09
professionalRajesh R Subramanian2-Jun-07 2:09 
GeneralRe: Problem in Inserting ActiveX Control in SDI Pin
S_Murali2-Jun-07 2:32
S_Murali2-Jun-07 2:32 
JokeRe: Problem in Inserting ActiveX Control in SDI Pin
Hamid_RT2-Jun-07 20:28
Hamid_RT2-Jun-07 20:28 
QuestionRe: Problem in Inserting ActiveX Control in SDI Pin
Hamid_RT2-Jun-07 20:27
Hamid_RT2-Jun-07 20:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.