If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I tried to download Visual Studio Express a few years ago but it wouldn't install.
All was going well until I went to Build>Build Solution after I had copied in the block of code to add the custom property to the control. I think I have followed the instructions to the letter but to start with I got a long list of build errors over 50. Then I put an open brace bracket just before the first statement like this:

public:

{

property bool ClickAnywhere {
bool get() {
...
etc.

}

and so on and, of course, putting the closed brace bracket at the end of the block of code
That open bracket that you can see above the first line of code reduces the number of build errors to only two: error code C2059 and another one C2334. I understand that that long list of errors are not really errors at all but a consequence of something I hope that's very simple but something key to the whole thing like my adding those brace brackets that improved everything greatly.
What can I do to fix this so that I have no build errors? I have come close but not close enough.
Is there now some fundamental difference between MS Visual Studio.NET 2003 and later versions of same?

Re: Brackets.

The sample code you're trying to compile is C++/CLI, which supersedes the now deprecated Managed Extensions for C++, AKA "the old syntax". However, the first version of Visual C++ that supported C++/CLI was 2005, so you can't compile that code with the version you're using.

Although probably possible, you shouldn't attempt to port the sample code back to the old syntax. It is definitely deprecated (and quite ugly BTW) and should only used when maintaining legacy code that already exists written in that language. The most reasonable option you have is to get a newer version of VC++ that supports C++/CLI.

I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Re: Brackets.

Originally Posted by Eri523

The sample code you're trying to compile is C++/CLI, which supersedes the now deprecated Managed Extensions for C++, AKA "the old syntax". However, the first version of Visual C++ that supported C++/CLI was 2005, so you can't compile that code with the version you're using.

Although probably possible, you shouldn't attempt to port the sample code back to the old syntax. It is definitely deprecated (and quite ugly BTW) and should only used when maintaining legacy code that already exists written in that language. The most reasonable option you have is to get a newer version of VC++ that supports C++/CLI.

Hello Eri,

Many thanks to you for replying to me. I appreciate this very much.
I plan now to buy a few books on C++ and VC++.
I was just hoping I could see the very basics from that walkthrough and I hope you won't be too shocked to read that it wasn't at all clear that this was a Windows Form Application. I am working my way through a book to learn more about VB.NET and the very next chapter that I am about to study is all about Windows Forms. I have so much to learn. I am a physicist by profession. Many thanks.

Re: Brackets.

You're welcome.

Be aware that, despite the similar name and similarities in coding, the "real" C++ (AKA native C++) and C++/CLI in fact are distinct languages. If you want to learn C++ and are not quite sure which of the two to use, chances are what you actually want/need to learn is native C++. The two most relevant forum sections regarding this on CodeGuru are Visual C++ Programming and C++ (Non Visual C++ Issues). The former is mostly about Windows programming using Visual C++ with the MFC framework. However, the Express Edition of VC++ does not feature MFC. The latter forum section is about almost anything else regarding the use of the C++ languare, Windows-related or not.

If, OTOH, you want to do .NET development, you may use C++/CLI for that. It can be used as a general-purpose .NET programming language, but mostly it's used specifically for interfacing between .NET and native code, AKA interop. The usually preferred mainstream .NET languages are VB .NET, that you already mentioned, and C#.

I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Re: Brackets.

Originally Posted by Eri523

You're welcome.

Be aware that, despite the similar name and similarities in coding, the "real" C++ (AKA native C++) and C++/CLI in fact are distinct languages. If you want to learn C++ and are not quite sure which of the two to use, chances are what you actually want/need to learn is native C++. The two most relevant forum sections regarding this on CodeGuru are Visual C++ Programming and C++ (Non Visual C++ Issues). The former is mostly about Windows programming using Visual C++ with the MFC framework. However, the Express Edition of VC++ does not feature MFC. The latter forum section is about almost anything else regarding the use of the C++ languare, Windows-related or not.

If, OTOH, you want to do .NET development, you may use C++/CLI for that. It can be used as a general-purpose .NET programming language, but mostly it's used specifically for interfacing between .NET and native code, AKA interop. The usually preferred mainstream .NET languages are VB .NET, that you already mentioned, and C#.

Hello Eri,

Again many thanks to you. I am clear in my mind that I want to program in Visual C++ so this is the perfect forum for me and I am delighted to be now a member. However it will take me a little time to really get going. For one thing I will need a brand new PC and I really need some books for sure. I am still coming to grips with what a class is and what OOP is all about but I'm delighted to tell you that in this regard I am making progress, I found trying to understand OOP from pure text very hard and it wasn't till I saw a few sample programs that I was gradually able to get closer to the concept of a class. I got fantastic help from a friend of mine whom I've known for 40 years and he explained to me all about how the introduction of classes came into being. This development didn't happen overnight he explained. Very interesting. My friend has also a masters in computer science. I have sent both of your replies to him by email and we can discuss everything you said in greater depth.
I think my friend will also have learned new things from your explanations.
I hope I haven't caused too much confusion because as you know now I am a bit confused myself and you have been exceedingly generous to me, so patient.
I wish you the very best.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.