For you resolving C + + CLR and ISO C + + principles differ

Source: Internet
Author: User
Tags microsoft video

With the C + + CLR for a long time, finally let me understand the ISO C + + and the C + + CLR differences, let me briefly on the study of pain and harvest it.

By learning WinForm Programming, strictly speaking, I am not WinForm programming, because my original program has a large number of ISO C + +, full use of C + + CLI to program I can not afford, and because it is self-study, it took me almost a long time to understand the difference between ISO C + + and C + + CLR At the same time because the domestic translation of the book is too slow, I see the c++clr are VS2003 old grammar, and the online download of Microsoft Video is VS2005, a lot of grammatical rules have become unrecognizable, and finally found an online VS2005 of the Chinese electronic book, I understand the difference between the two, Vs2003 weird __gc, and in 2005 I feel cool, but not to say more bizarre ^ (tracking handle), the legendary tracking handle, can say really painful.

More painful is the C + + CLR Weird syntax not to say, the worst is that I want to use my previous class, but also to use the WinForm interface, and. NET class Library FileStream streams and MemoryStream, and ado.net, which involve declaring managed objects in unmanaged classes, the more bizarre syntax gcroot<> comes out, and all sorts of weird bugs come out, Almost every 5 lines of my program, compile the time will be an error, that mood can really a vicissitudes. It can be said that at that time I think the most stupid thing in the Microsoft Department is to write C++.net compiler, this group of people, how to write such a troublesome thing, in unmanaged code and managed code, there are often such a strange mistake, and in *,^, as well as ordinary value variables, the process of transition is really abnormal pain.

Harvest:

Although the transition process is painful, but now look back to see it is worthwhile, after all. NET platform is the future of the mainstream, at the same time because of WinForm write, so I learned its event message response mechanism, "commissioned", this before in the soft work textbook to see the concept I finally have a profound understanding.

The first harvest is that I finally understand what is called reference type and numeric type. I have never understood what Java is better than C + +, this time in many "value type" and "reference type" is value and ref in the conversion and back and forth, finally understand what is going on, it seems that C # and Java into the mainstream, nor is the "wave of the reputation ah".

Harvest two: Through this painful transformation, feel that they are lucky, although the chance coincidence, finally know the existence of C + + CLR, and finally know how to manipulate the powerful. NET class library, think of the future to find a job should be good

Harvest three: In the process of learning C + + CLR in such a strenuous way, this time I this little programmer learned what is called "learning", what is called hardship, before I feel that the examination, but found that the fact that "research" is really hard, after all, as long as the examination of the postgraduate school can only follow the direction, can say no brain as long as the effort can be, But the study time is not the same, when you think, only to find the solution of the problem so simple, so that you laugh and cry, looking for the process is quite time-consuming.

Here I leave two books that I think are better and a video recommendation for programmers who need to transform as much as I do.

1: MFC application in. NET Framework The book is about how to apply it under MFC. NET class Library, this book I feel very well, put. NET class Library's several characteristics all outstanding, but the only insufficient is its grammar still is vs2003, looks the time should pay attention.

2:visual C + + 2005 Introductory Classic, this book is on the internet a master recommended to me, I did not buy, only electronic version, but this book to vs2005 in C + +

The syntax of the CLR is very thorough, and it contrasts with the syntax of ISO C + +, which is a very good book in principle.

3:visual c++.net This book is also very good, WinForm programming a lot of, especially I learned a lot from the knowledge of GDI +, hehe, but unfortunately its grammar I borrowed this version of this is also the vs2003 grammar, need attention.

4: The last one is the online video of Microsoft, is Li Jianzhong speak vs2005 This can better grasp the vs2005 C + + CLR.

The above is a little learning experience, I hope you can see less to do detours, but also hope and I am in transition as programmers can communicate more, so that can better progress hehe.

The last thing I want to say is that even though I think the C + + CLR is very "chicken", but still want to say tracking handle this name I like really very "cool", for this, I also want to study hard, like the orc in War3, once so oppressed, Even a generation of beastmaster grubby also very helpless, but since the choice of a race, we must stick to it, as now Orc, there is always our strong day. Haha, I'm looking forward to it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.