-
October 14th, 2019, 10:50 AM
#31
Re: How to learn c++/cli?
But marketing-wise or politically, where's the advantage to Microsoft in VC++ NOT supporting the other platforms? Like I've said elsewhere, it just makes it impossible any more to recommend VC++ as a serious development tool.
"A problem well stated is a problem half solved.” - Charles F. Kettering
-
October 15th, 2019, 08:35 AM
#32
Re: How to learn c++/cli?
Originally Posted by Arjay
It pains me to see you starting to learn nearly 20 year old technology, i.e., System.Windows.Forms.
Something just occurred to me this morning...
VC++ does seem intrinsically tied to other Microsoft technologies (such as MFC and Windows Forms) and obviously that wouldn't translate well to the non-Windows platforms. It occurred to me that maybe that's the reason why VC++ is getting left behind.
And yet they've managed to adapt Visual Basic so that it'll target other platforms... Doesn't Visual Basic have similar tie-ins?
"A problem well stated is a problem half solved.” - Charles F. Kettering
-
October 15th, 2019, 09:20 AM
#33
Re: How to learn c++/cli?
And yet they've managed to adapt Visual Basic so that it'll target other platforms... Doesn't Visual Basic have similar tie-ins?
That's because of .net which is available for other platforms - and Visual Basic .net uses .net. They haven't adapted VB as such. C++/cli was MS attempt for c++ xplatform as it used .net.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
October 15th, 2019, 09:46 PM
#34
Re: How to learn c++/cli?
Originally Posted by John E
And yet they've managed to adapt Visual Basic so that it'll target other platforms... Doesn't Visual Basic have similar tie-ins?
VB.Net is a different language than the older VB6 like varieties. About the only thing VB.Net has in common with VB6 is some of the syntax, everything else is different.
So VB.Net isn't a good example here.
From what I understand, a reason for coding in C++/CLI is for C++/CLI code to be able to interact with C/C++ code and be exposed as a .Net assembly (in order for it to be consumed by other .Net assemblies and/or COM clients).
If this is the main reason, rather than going C++/CLI, I would put my C/C++ code inside a dll and call the dll inside a C# .Net assembly using pinvoke. That way, you can have the code written in C/C++ utilized and get the benefits of coding in a .Net tailored language like C#.
Quite frankly working in C# is so much easier - UI, database interaction, xml/json manipulation, working with classes, syntactical suger, the list goes on and on.
I spent many years coding in C++, and in my personal view, I am more productive and have way more options available coding in C#.
-
October 15th, 2019, 10:00 PM
#35
Re: How to learn c++/cli?
Btw, another option to coding a Forms UI application is to use WPF (I don't know if it is C# or VB.Net only).
It's cool because UI elements are described using a declarative syntax called xaml. Xaml defines the visual elements and the elements get bound to the data through a model (that's my 25 cent explaination anyway).
Now consider a simple app that has a button and when you click on the button, it plays a video that is displayed in the button.
Imagine how you would code this with C++ MFC or some other C++ UI framework?
In C# in a WPF app, it's about 10 lines of xaml.
Not that anyone has a need to play a video inside a button, but the difference in the lines of code between approaches is astounding.
-
October 16th, 2019, 04:43 AM
#36
Re: How to learn c++/cli?
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
October 25th, 2019, 06:58 AM
#37
Re: How to learn c++/cli?
So after a lengthy discussion on the C# forum it feels like we've come full circle with this. The bottom line (with Visual Studio) is that there's no way to build a C++ app for anything other than Windows. Cross-platform builds are supported for other languages (C#, F# and Visual Basic) but not for C++.
Which begs the question... where's the benefit in making a move to C++/CLI ? Yes, it supports .NET but it doesn't support .NET Core which is a massive limit to its usefulness. .NET Core seems to be the key to preventing Visual C++ from descending into a legacy language.
Visual C++ devs need a credible cross-platform alternative to gcc. But just like us, MS seems to be going in circles and getting nowhere...
"A problem well stated is a problem half solved.” - Charles F. Kettering
-
October 25th, 2019, 07:01 PM
#38
Re: How to learn c++/cli?
Originally Posted by John E
So after a lengthy discussion on the C# forum it feels like we've come full circle with this. The bottom line (with Visual Studio) is that there's no way to build a C++ app for anything other than Windows. Cross-platform builds are supported for other languages (C#, F# and Visual Basic) but not for C++.
Which begs the question... where's the benefit in making a move to C++/CLI ? Yes, it supports .NET but it doesn't support .NET Core which is a massive limit to its usefulness. .NET Core seems to be the key to preventing Visual C++ from descending into a legacy language.
Visual C++ devs need a credible cross-platform alternative to gcc. But just like us, MS seems to be going in circles and getting nowhere...
Yes, jump to C# and skip C++/CLI altogether.
-
October 26th, 2019, 02:19 AM
#39
Re: How to learn c++/cli?
Originally Posted by Arjay
Yes, jump to C# and skip C++/CLI altogether.
... and forget C++/CLI like a nightmare!
Victor Nijegorodov
-
October 26th, 2019, 03:02 AM
#40
Re: How to learn c++/cli?
Originally Posted by VictorN
... and forget C++/CLI like a nightmare!
Yep
-
October 26th, 2019, 03:29 AM
#41
Re: How to learn c++/cli?
I must admit I'd be very reluctant to start any new project using Visual C++ - but for legacy projects it'd be nice to have a better cross-platform solution than gcc.
"A problem well stated is a problem half solved.” - Charles F. Kettering
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|