Advise - How to make C++ Windows Form App without .NET framework
-
I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...
-
I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...
MFC?
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
-
MFC?
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
(now my ignorance will become evident) I've just created an MFC solution in VS05, but wasn't sure what to choose for the project settings so I used the defaults. I'm not seeing how to interact with the main form. Can I use the graphical form designer with this type of project?
-
(now my ignorance will become evident) I've just created an MFC solution in VS05, but wasn't sure what to choose for the project settings so I used the defaults. I'm not seeing how to interact with the main form. Can I use the graphical form designer with this type of project?
yes
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
-
yes
Silence is the voice of complicity. Strange women lying in ponds distributing swords is no basis for a system of government. -- monty python Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay
Could you elaborate on how to do so? When I try to add a form, it wants to add support for CLR, which means .NET framework, if I'm not mistaken..
-
Could you elaborate on how to do so? When I try to add a form, it wants to add support for CLR, which means .NET framework, if I'm not mistaken..
Ah! It's called a dialog here. I've added a Dialog and can design willy nilly. Sweet.
-
I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...
You have two options with MFC. You can create a dialog based application or a SDI/MDI application using CFormView. A dialog based application generally does not have a menu or toolbar. What you get is a dialog box (WinForm in the .Net world), that you can drag and drop your controls into and then write the code behind it to do what you want. If you want menus and toolbar, then I would go with either an MDI or SDI application. This is more like windows notepad and Visual Studio. Visual Studio is an MDI (multi-document application) and SDI is like notepade (single document interface). When creating a SDI/MDI applicaiton, the last page of the application wizard lets you choose what type of view you want. If you want to be able to display some control, like buttons, lables, edit control...., you would want to change the view class from CView to CFormView. Let me also add that jumping into something like this without doing some homework could turnout to be somewhat overwhelming. Good luck,
AliR. Visual C++ MVP
-
You have two options with MFC. You can create a dialog based application or a SDI/MDI application using CFormView. A dialog based application generally does not have a menu or toolbar. What you get is a dialog box (WinForm in the .Net world), that you can drag and drop your controls into and then write the code behind it to do what you want. If you want menus and toolbar, then I would go with either an MDI or SDI application. This is more like windows notepad and Visual Studio. Visual Studio is an MDI (multi-document application) and SDI is like notepade (single document interface). When creating a SDI/MDI applicaiton, the last page of the application wizard lets you choose what type of view you want. If you want to be able to display some control, like buttons, lables, edit control...., you would want to change the view class from CView to CFormView. Let me also add that jumping into something like this without doing some homework could turnout to be somewhat overwhelming. Good luck,
AliR. Visual C++ MVP
Overwhelming indeed. I've decided to forget the GUI for now until I get my C++ logic and syntax down. So far I've successfully made a custom class that performs a WMI query to some info I need. I'm now working on figuring out some datatyping issues I'm running into that I never ran into in C#. Thanks for the advice, I'll certainly put it to use when I get to adding a GUI.
-
I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...
alanteigne wrote:
How should I go about creating a Form based GUI app for my circumstances?
You can't. Its that simple. Forms are .NET. Period. To create an unmanaged GUI, you need a different Framework than Windows Forms. MFC was mentioned, WTL is also an option. Also, you could try using other frameworks: wxWidgets[^] Qt[^] come to mind.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency" -
I have a rookie question for you guys. I need to write a GUI based application (not too complex) for a windows platform that cannot have the .NET framework installed. The .NET Framework is absolutely out of the question. I've attempted to create a Windows Form application for C++ under Visual Studio 05, but when I compile it runs on my machine but not the remote machine. All it is is a blank form, so it's not a code bug. How should I go about creating a Form based GUI app for my circumstances? Thanks...
As others said MFC, QT, etc are common... if your application is really trivial (maybe one dialog and a few interactive controls) you can also do plain Win32. The advantage is that you don't have to learn a whole framework like MFC and get really slim code... search for "win32 tutorial". Hope it helps.