Re: "pointers" in /clr

Tech-Archive recommends: Fix windows errors by optimizing your registry



"beginthreadex" <beginthreadex@xxxxxxxxxxx> wrote in message
news:eLzK8oi6FHA.476@xxxxxxxxxxxxxxxxxxxxxxx
> The frustrating part is that articles from Microsoft do not designate they
> are for managed code only.

Hmm.

What I agree is confusing is tagging everything with the .Net moniker. We
sometimes get questions here as to whether Visual Studio .Net includes a
"real" C++ compiler. The truth is that it in effect includes four
compilers - C, C++ for native applications and Managed C++ and C++/CLI for
managed code.

On the other hand, it is hard to imagine an article on the new syntax not
being couched in .Net terms.

> Persons that have been developing in VC++ for many years might run into
> the
> same issues that I do with my teams. If MS knows that the classes are
> collected then the syntax should not matter.

They tried going down this path. We told them that we hated it. They
listened. In fact the point can be made that things are _less_ confusing
now: the new operator is a used to allocate and initialize native objects
while gcnew is used for managed objects. Here the departure from the norm
makes the intent crystal clear.

Regards,
Will


.



Relevant Pages

  • Re: Getting Panel Image
    ... You cannot do this with only managed code in 1.1 but 2.0 has a managed ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: c# coding
    ... In managed code, memory is deallocated by the garbage collector when it's no longer needed. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.languages.csharp)
  • OLE Container for managed code
    ... I've read the KB articles that indicate that there is no OLE container for ... managed code. ... It doesn't seem to me that this is rocket science, ...
    (microsoft.public.dotnet.framework.interop)
  • C++ Callback to C#
    ... certain times I need to let the unmanaged code notify the managed code (via ... After having read a few articles on the subject I came up with the following ... problems, but I want to know if it is even remotely correct (and by correct, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: c# coding
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... In managed code, memory is deallocated by the garbage collector when it's no longer needed. ...
    (microsoft.public.dotnet.languages.csharp)