Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: need little help Pin
Christian Graus30-Apr-08 20:19
protectorChristian Graus30-Apr-08 20:19 
QuestionIEToolbar related question? Pin
ritz123430-Apr-08 19:08
ritz123430-Apr-08 19:08 
QuestionRegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
lahom30-Apr-08 18:59
lahom30-Apr-08 18:59 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R30-Apr-08 20:57
Rajkumar R30-Apr-08 20:57 
QuestionRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
David Crow1-May-08 3:00
David Crow1-May-08 3:00 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 3:42
Rajkumar R1-May-08 3:42 
AnswerRe: RegQueryValueExNULL,RegSetValueExString,egQueryValueExString Pin
Rajkumar R1-May-08 7:12
Rajkumar R1-May-08 7:12 
QuestionAnother question on "Good Practices" involving code file size... Pin
x87Bliss30-Apr-08 15:39
x87Bliss30-Apr-08 15:39 
My application has a main window that provides most of the functionality. The window itself is nice and clean, and very user friendly IMO. However, the class CPP file for it is growing large and hard to navigate (I have to use Ctrl+F to find most functions). The reason for this is there are a lot of possible interactions the user can have with the interface, each having a unique function. The .cpp file is currently 24kb (845 lines including whitespace); which is a lot for me, I usually don't write large programs.

I want to try to keep the code organized, and I'd like to know some good practices for doing this. (If I become a programmer as a job, I want to know how to make the code "presentable" and not just a mess.) Is it just a matter of trying to keep the functions sorted in groups (i.e. everything having to do with interaction of the list control together, then everything with the media player together, etc.. etc..) Or is there more that I can do to try to keep it organized?

Lastly, Visual Studio 2008 defaults to making wizard generated message handlers public. I would think that they should be protected in most cases. Is there a convention here that I'm not aware of, or should I indeed move the ones that other classes shouldn't be calling to protected?

Thanks again for any info!
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Steve Echols30-Apr-08 18:49
Steve Echols30-Apr-08 18:49 
AnswerRe: Another question on "Good Practices" involving code file size... Pin
Nelek1-May-08 22:12
protectorNelek1-May-08 22:12 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
x87Bliss2-May-08 0:00
x87Bliss2-May-08 0:00 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
Rajkumar R2-May-08 1:24
Rajkumar R2-May-08 1:24 
GeneralRe: Another question on "Good Practices" involving code file size... Pin
x87Bliss2-May-08 13:37
x87Bliss2-May-08 13:37 
Questionsome pointers Pin
johnzfrebbies@30-Apr-08 11:43
johnzfrebbies@30-Apr-08 11:43 
AnswerRe: some pointers Pin
Christian Graus30-Apr-08 12:10
protectorChristian Graus30-Apr-08 12:10 
AnswerRe: some pointers Pin
Maximilien30-Apr-08 14:50
Maximilien30-Apr-08 14:50 
GeneralRe: some pointers Pin
johnzfrebbies@1-May-08 19:02
johnzfrebbies@1-May-08 19:02 
QuestionMoving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
Stevej30-Apr-08 3:53
Stevej30-Apr-08 3:53 
AnswerRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
led mike30-Apr-08 4:16
led mike30-Apr-08 4:16 
GeneralRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
Stevej30-Apr-08 5:22
Stevej30-Apr-08 5:22 
GeneralRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
led mike30-Apr-08 7:17
led mike30-Apr-08 7:17 
QuestionRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
David Crow30-Apr-08 5:58
David Crow30-Apr-08 5:58 
AnswerRe: Moving CDaoRecordset to something else ??? for conversion From MS Jet to SQL Server Pin
Stevej30-Apr-08 6:23
Stevej30-Apr-08 6:23 
QuestionLoading MS Word or other software from your own program Pin
Larry Mills Sr30-Apr-08 3:09
Larry Mills Sr30-Apr-08 3:09 
AnswerRe: Loading MS Word or other software from your own program Pin
David Crow30-Apr-08 3:13
David Crow30-Apr-08 3:13 

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.