negativezero 0 Report post Posted July 20, 2005 can some help how to make GUI with c++....thanks!!!! Share this post Link to post Share on other sites
palladin 0 Report post Posted July 20, 2005 Which version of C++ ?The last couple of years Borland C++ got Visual Creator to make GUI, so where is problem ?--------------------Practice is when evrything is work but no one know why.Theory is when work nothing but evry one know why.Programmers join Practice with Theory - nothing work and no one know why Share this post Link to post Share on other sites
fffanatics 0 Report post Posted July 20, 2005 It depends on what OS you are planning to make the GUI for. If you are going to make a windows gui, you just need to Google or read up on the WinAPI. If you are writing the software for another OS just search for their drawing api or another similiar term. Share this post Link to post Share on other sites
bsdpowa 0 Report post Posted July 23, 2005 I assume you're talking about Windows.You could try MFC library.Create new project using Win32 application.Don't let the wizard add any files, choose empty project..Add a .cpp file and copy the code below and compile. #include <afxwin.h>struct CMainFrame : public CFrameWnd{ CMainFrame() { Create(NULL, "Test"); }};struct CTestApp : public CWinApp{ BOOL InitInstance() { CMainFrame *Frame = new CMainFrame(); m_pMainWnd = Frame; Frame->ShowWindow(SW_NORMAL); Frame->UpdateWindow(); return TRUE; }};CTestApp theApp; MFC provides two important classes, CWinApp and CFrameWnd.The first class provides level functionalities and the second one provides functionalities for GUI.You have tons of reading material on the internet so I suggest you use Google.comIf you're planning to code GUI applications on Linux I would warmly recommend QT library. Share this post Link to post Share on other sites
negativezero 0 Report post Posted July 29, 2005 thanks!!!but were can i download this "MFC library". i tried searching in google but the results are about visual c++... Share this post Link to post Share on other sites
bsdpowa 0 Report post Posted July 29, 2005 That's because MFC is only for Visual C++.MFC stands for Microsoft Foundation Class and it's already included in the compiler.This is a class diagram of a MFC 6.0 library:http://ii.uni-mb.si/I can provide you with some tutorials we used to use in school.CHAPTER 1 - MFC classes, CString, CPoint, CRect, CSizeCHAPTER 2 - classes, inheritage, virtual functionsCHAPTER 3 - collections, object fields, pointer fields, templates, CArray, CObjList, CFile, Serializing: CArhiveCHAPTER 4 - MFC programs, events, DC. controls, menues, dialogsBooks about MFC:Jeff Prosis, Programming Windows with MFCDavid J. Kruglinski, Programming Visual C++Shirley Wodtke, Learn the MFC C++ ClassesTutorials about MFC:Excellent tutorials about programming with MFCTutorials on DevCentralIf you're planning to code under Linux, you should check QT, Glade, Motif and GTK libraries. Share this post Link to post Share on other sites