Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Conect two computers in different networks Pin
AntonioJesus17-May-13 0:48
professionalAntonioJesus17-May-13 0:48 
AnswerRe: How to Conect two computers in different networks Pin
Richard MacCutchan17-May-13 1:01
mveRichard MacCutchan17-May-13 1:01 
AnswerRe: How to Conect two computers in different networks Pin
Garth J Lancaster17-May-13 1:03
professionalGarth J Lancaster17-May-13 1:03 
GeneralRe: How to Conect two computers in different networks Pin
AntonioJesus17-May-13 1:18
professionalAntonioJesus17-May-13 1:18 
AnswerRe: How to Conect two computers in different networks Pin
Jochen Arndt17-May-13 2:24
professionalJochen Arndt17-May-13 2:24 
AnswerRe: How to Conect two computers in different networks Pin
David Crow17-May-13 5:06
David Crow17-May-13 5:06 
QuestionOOP Project Ideas Pin
dirtyfishtank16-May-13 19:30
dirtyfishtank16-May-13 19:30 
AnswerRe: OOP Project Ideas Pin
MicroVirus17-May-13 1:14
MicroVirus17-May-13 1:14 
Basically, it doesn't matter what you code, you can always choose to approach it from an OOP perspective. So, then it's just the question of what you want to create.

I often create (small) tools, math-gimmicks like prime-number searches, and 'technical test projects' (to test out a specific API/environment/library for the purpose of learning).
Others are more inclined to program games, or simulations, for instance.

I think a pitfall in this case with creating a program in C++ is that it's all too tempting to use what you know in C and do it like that (though you'll have to consider for yourself if that applies).

As soon as you have something you want to create, start thinking about the involved objects and their lifetime. Start simple, for your first project, and limit the complexity and amount of classes. Most of OOP is about dividing functionality and responsibility among classes and determining their lifetime, and modelling the interactions between them. A good strategy is to make each class responsible for exactly one thing and to use a 'black box' principle: other code/classes should only concern themselves with what the class does for them, and not 'how' it does it. A rule of the thumb related to this is that if you start writing code in class1 like class2->memberClass->someMethod() that something is wrong, because now class1 needs to know the rules of class2::memberClass, which violates that black box principle. Of course, this is only a guideline and not necessarily is wrong.

Good luck
GeneralRe: OOP Project Ideas Pin
dirtyfishtank23-May-13 12:45
dirtyfishtank23-May-13 12:45 
AnswerRe: OOP Project Ideas Pin
Erudite_Eric19-May-13 22:43
Erudite_Eric19-May-13 22:43 
QuestionWhy does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 7:45
Erudite_Eric16-May-13 7:45 
AnswerRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Chris Losinger16-May-13 7:56
professionalChris Losinger16-May-13 7:56 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 8:06
Erudite_Eric16-May-13 8:06 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 8:08
Erudite_Eric16-May-13 8:08 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 8:16
Erudite_Eric16-May-13 8:16 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Chris Losinger16-May-13 8:51
professionalChris Losinger16-May-13 8:51 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
CPallini16-May-13 9:36
mveCPallini16-May-13 9:36 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric17-May-13 4:50
Erudite_Eric17-May-13 4:50 
AnswerRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
dusty_dex16-May-13 7:58
dusty_dex16-May-13 7:58 
GeneralRe: Why does this compile on Linux with gcc and not on WIndows with VC? Pin
Erudite_Eric16-May-13 8:18
Erudite_Eric16-May-13 8:18 
QuestionPassing objects between dialogs MFC Pin
Cynizm16-May-13 7:25
Cynizm16-May-13 7:25 
AnswerRe: Passing objects between dialogs MFC Pin
Erudite_Eric16-May-13 8:05
Erudite_Eric16-May-13 8:05 
GeneralRe: Passing objects between dialogs MFC Pin
Cynizm16-May-13 9:52
Cynizm16-May-13 9:52 
GeneralRe: Passing objects between dialogs MFC Pin
_Flaviu16-May-13 22:05
_Flaviu16-May-13 22:05 
GeneralRe: Passing objects between dialogs MFC Pin
Erudite_Eric17-May-13 4:53
Erudite_Eric17-May-13 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.