I write a program using c++. I am using visual visual studio 2012.In my program there are many graphical element such as aircrft, radar etc. I have written the program in win32 console application. In my program there are many header (.h) files as well as many (.cpp) files. Now I want to run my program in Graphical User Interface (GUI) by copying those header files and cpp files. what can i do in this situation. please give me a solution by an example.
Your question is somewhat complex and lacking in a lot of details. Most of the issues you describe can be worked out by following a reasonable book on C++ programming for a Windows operating system (ie. a Visual Studio/C++ book, not Stroustrup's C++ book).
[No url here; refer to a paper book...]
I think there're only few ways of doing so...
Build everything from scratch (well.., not at all). These are the Fastest GUIs around. A platform always have a this kind of API set (one & only). In Windows it's
Win32 API. I've heard that in Mac it's
Cocoa API. These are :
>> OS dependent.
Wrappers around a specific Platform
2nd level. This is a framework, that is used only to minimize the code of the Native API, or to make it more simpler. There're may be a tiny performance difference between the Native and this. (it really doesn't matter sometimes). For Win32, there're frameworks called
WTL ,... (you may have probably heard about them). These're
>> OS dependent.
Use cross-platform toolkits (or Frameworks)
Completely portable. Slower that the above two ways. But can help you in Rapid Developments. Easy to learn and simple.
KDE can be examples. (really, there are).
I always like the 1st way of GUI, which is 'Going Native'. But it's your choice !
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)