CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2019
    Posts
    1

    Visual Studio C++ projects with UI

    Hello,

    I would like to know in Visual Studio 2017, what kind of projects with a user interface would be in a native C++ framework so that I can link it to a C++ library (.lib file). Before I was using a CLR project with a UI and tried to link it to a C++ library (.lib file) but could not link it because that application was in a .NET framework.

    Thanks

  2. #2
    Join Date
    Feb 2017
    Posts
    677

    Re: Visual Studio C++ projects with UI

    Strange. The whole idea with C++/CLI was that legacy C++ code should work with .NET. Did you select "mixed mode" in the project settings? It should allow you to mix native and managed code in the same program.

    If you don't need or want .NET you can create an MFC project,

    https://docs.microsoft.com/en-us/cpp...n?view=vs-2017

    It will be a native C++ project that allows you to provide a GUI for your application.

    If you don't want to use MFC you can instead go for a third party GUI. There are a bunch to select from, for example Win32++, wxWidgets, FLTK and Qt. In that case it's best I think to start with an example application that comes with the download and then modify and expand it to your liking.

    Otherwise you can create a Windows desktop project. You will them build the GUI by making calls to Windows,

    https://docs.microsoft.com/en-us/cpp...p?view=vs-2017
    Last edited by wolle; April 19th, 2019 at 03:26 PM.

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