I would like to build an application using C++, but I am facing a problem with the GUI. is there a simple way to make a user interface just by adding and drops buttons and labels like in Java ? Some told me to use QT but I want to use visual studio. Is it possible?
Visual Studio has a Resource Editor, that allows you to drag/drop various controls from the Toolbox panel onto your dialog. You don't really need MFC support for that.
You can use an App Wizard to create new project of a Win32 type, open its .rc file, add new dialog and start experimenting.
Related
I converted a project from Qt to VS (by installing the Qt extension). Now I want to replace the existing Qt GUI with Microsoft Winform. When I tried to add a new item into the solution, the Winform is not available for me to choose (I did install C++/CLR Winform extension). Wonder if it's even possible to do, or I should create a VS Winform project to start with then manually adding my source code files to the solution?
Here is what I have done so far:
Installed Qt VS tool extension and C++/CLR Winform extension from my VS IDE.
Successfully opened an existing Qt project and saved it as a VS solution.
Tried to add a new item to a project and the item to be added is Winform. No Winform is available for me to add.
I am using Microsoft Visual Studio 2010 Professional and have been looking at how to change the icon of my program. One of the solutions suggested I go to the project's properties and in the project designer, click the app section and that I would be able to edit what the icon file is.
My problem is this: When I open the properties of a project, it gives me this
window
From what I understand this is the property page. This is not what I'm looking for. I am told that the project designer looks something like this:
Project Designer
How can I alter my project so that when I click the property setting, it allows me to open the project designer instead of this? Or, how else can I access the project designer?
The first window you showed is the one we get for the properties of a c++ project. The second one we get it for the properties of a c# project.
I have excactly the same problem as you. I need to change some compiler settings.
I am new to ActiveX Controls, though I have some basic background in COM/ATL programming.
Steps
The project is a simple Win32 project created using the Visual Studio 2012 wizard. I have selected all the default options. The dialog box is created using the resource editor dialog and then selecting new dialog option.
Problem
In my application I want to host the Internet Explorer (or some other) activex control in a dialog box. But the problem is that when I right click (as suggested by many sites and even msdn) the insert activex control ... is always disabled. I am not using MFC, but instead CAxDialogImpl (as described here).
Please suggest what I am doing wrong? How can I enable insert activex control ... in Visual Studio 2012 dialog editor?
I took considerable time to enable it, but the answer is simple: remove the macro "_APS_NO_MFC" in "resource.h" file.
A plain Win32 dialog does not have ActiveX container support, so the resource editor will not let you add the control.
You'll need to create a second project like an MFC dialog-based app, then copy the control information from its RC file.
CodeProject has some articles on using ActiveX controls without MFC, such as this one using parts of ATL - Win32 dialog helpers or this one that's pure C++ but similar to ATL's AxWindow - Use an ActiveX control in your Win32...
we have once application build using MFC/C++. We want make the bit rich UI like VS 2010 or outlook etc... at last we want give new look to our app like Microsoft does on every release of their products.
Please suggest me to topic that i need to look into or suggest me the option for the same.
If you're using Visual Studio 2010 or higher, the MFC application wizard itself will generate UI like VS 2010 with tabs and docking windows. In fact you can create an application that looks like VS 2010 without writing a single line of code. There is also support for the ribbon control which has replaced the menus in the new office applications.
As I am assuming you are going to use C++/native code, MFC is still the way to go or you can choose the WTL also. If you are ready yo go to a totally different direction then QT is one of the most advanced and modern cross platform library. MFC feels old compared to QT. AFAIK you can not use ribbon control in QT without microsoft license.
Another option is to go to managed way, you can use WPF with C#.
As already mentioned, you can use the new classes in the MFC feature pack, which came with Visual Studio 2008 Service Pack 1.
MSDN provided a tutorial how to migrate an old MFC application to the new MFC feature pack classes here: http://msdn.microsoft.com/en-us/library/bb983935%28v=vs.90%29.aspx
I am new to C++ and Qt and I am supporting a project using it. Someone set up my Visual C++ environment with Qt. I wanted to start another test project for me to practice with C++ and Qt. Ive created a new C++ project in Visual Studio, but I have no idea how to add the Qt library to it. There is a Qt menu item at the top of Visual Studio. Anyone know how?
When you select new project in VisualStudio (SHIFT+CTRL+N) you should see Qt4 Projects tab to your left. Select it and then select the type of Qt project you want create. Most likely you would be needing a "QtApplication" or "Qt Console Application" . When you create an application this way, you will have all Qt libraries and includes setup by the Qt-VS Addin automatically
The Qt menu on the top means that you already have a Qt-VisualStudio add-in installed.