CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
  1. #31
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    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

  2. #32
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: How to learn c++/cli?

    Quote Originally Posted by Arjay View Post
    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

  3. #33
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    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)

  4. #34
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to learn c++/cli?

    Quote Originally Posted by John E View Post
    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#.

  5. #35
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  6. #36
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: How to learn c++/cli?

    [Post re C# moved to C-Sharp forum http://forums.codeguru.com/showthrea...ow-to-learn-c]
    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)

  7. #37
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    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

  8. #38
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to learn c++/cli?

    Quote Originally Posted by John E View Post
    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.

  9. #39
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: How to learn c++/cli?

    Quote Originally Posted by Arjay View Post
    Yes, jump to C# and skip C++/CLI altogether.
    ... and forget C++/CLI like a nightmare!
    Victor Nijegorodov

  10. #40
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: How to learn c++/cli?

    Quote Originally Posted by VictorN View Post
    ... and forget C++/CLI like a nightmare!
    Yep

  11. #41
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    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

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured