Jul 25, 2008

Help With C++?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

Help With C++?

negativezero
can some help how to make GUI with c++....

thanks!!!! biggrin.gif

Reply

palladin
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 cool.gif

Reply

fffanatics
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.

Reply

bsdpowa
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.

CODE

#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.com

If you're planning to code GUI applications on Linux I would warmly recommend QT library.

 

 

 


Reply

negativezero
thanks!!!

but were can i download this "MFC library". i tried searching in google but the results are about visual c++...

Reply

bsdpowa
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://lisa.uni-mb.si/osebje/bonacic/predm...MFC_razredi.jpg

I can provide you with some tutorials we used to use in school.

CHAPTER 1 - MFC classes, CString, CPoint, CRect, CSize
CHAPTER 2 - classes, inheritage, virtual functions
CHAPTER 3 - collections, object fields, pointer fields, templates, CArray, CObjList, CFile, Serializing: CArhive
CHAPTER 4 - MFC programs, events, DC. controls, menues, dialogs

Books about MFC:

Jeff Prosis, Programming Windows with MFC
David J. Kruglinski, Programming Visual C++
Shirley Wodtke, Learn the MFC C++ Classes

Tutorials about MFC:

Excellent tutorials about programming with MFC
Tutorials on DevCentral

If you're planning to code under Linux, you should check QT, Glade, Motif and GTK libraries.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics
Looking for c

Searching Video's for c
advertisement



Help With C++?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE