N
nicolas.hilaire
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
/clr compilation mode. Is my app in CLR, or only the call to the
framework ? what is managed / unmanaged ?
- i've a winforms app, compiling with /clrure , i'm calling such a
function :
int add(int a, int b)
{
return a+b;
}
is this functions moved to CLR ? is this function managed / unmanaged ?
- In addition, in the winform app with /clrure, i'm creating a class
without the ref keyword, is this class unmanaged ? moved to clr anyway
?
- i'm creating a winforms app. I want to use a unmanaged class (without
the ref keyword), between #pragma unmanaged and #pragma managed . Is
this class unmanaged ? Is it in the CLR ? Was it useful to use this
pragma or would have been enough to only not use the ref keyword ?
Thanks a lot in advance for explaning me this better
Best regards,
Nicolas H.
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
/clr compilation mode. Is my app in CLR, or only the call to the
framework ? what is managed / unmanaged ?
- i've a winforms app, compiling with /clrure , i'm calling such a
function :
int add(int a, int b)
{
return a+b;
}
is this functions moved to CLR ? is this function managed / unmanaged ?
- In addition, in the winform app with /clrure, i'm creating a class
without the ref keyword, is this class unmanaged ? moved to clr anyway
?
- i'm creating a winforms app. I want to use a unmanaged class (without
the ref keyword), between #pragma unmanaged and #pragma managed . Is
this class unmanaged ? Is it in the CLR ? Was it useful to use this
pragma or would have been enough to only not use the ref keyword ?
Thanks a lot in advance for explaning me this better
Best regards,
Nicolas H.