Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 21:28
Nishad S17-May-06 21:28 
AnswerRe: How to draw a border color to static Frame control in C++ Pin
Hamid_RT17-May-06 21:23
Hamid_RT17-May-06 21:23 
AnswerRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 22:21
Nishad S17-May-06 22:21 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
huutribk200117-May-06 22:31
huutribk200117-May-06 22:31 
Questionhow to make Applications exe to run in WINNT Pin
code6617-May-06 20:06
code6617-May-06 20:06 
Questionno private no protected oops only public Pin
pathakr17-May-06 20:04
pathakr17-May-06 20:04 
AnswerRe: no private no protected oops only public Pin
_AnsHUMAN_ 17-May-06 20:07
_AnsHUMAN_ 17-May-06 20:07 
AnswerRe: no private no protected oops only public Pin
Sarath C17-May-06 20:13
Sarath C17-May-06 20:13 
Practices are making man perfect.
so through practice, u will be perfect.

Reading is a good option to know more and correct our assumptions and mistake and also it will fill the gaps in our knowledge.

If you read Code Complete 2, Effective C++ (or similar books), u will find that what u r doing is absolutly wrong.

Define scope for all classes u r creating.
Fix the interfaces, limit it to a minimum.

The public functions are used to communicate with other modules or object. where are as we are defining private functions for some internal calculation required by other functions in the class.

Suppose there is a function in your class which draws an object in your window. you don't need to share this function to others. because it is only required when a paint message comes in your object and draws the required object. it is limited to your class.

so scope ur object with minimum interfaces. never put internal functions to public, that is nto a good way of pragramming. if it is generic and can be used for others make it public static and meaningful.

Hope u clear.


-Sarath
AnswerRe: no private no protected oops only public Pin
Laxman Auti17-May-06 20:23
Laxman Auti17-May-06 20:23 
GeneralRe: no private no protected oops only public Pin
ppatel56717-May-06 20:40
ppatel56717-May-06 20:40 
JokeRe: no private no protected oops only public Pin
Laxman Auti17-May-06 20:47
Laxman Auti17-May-06 20:47 
AnswerRe: no private no protected oops only public Pin
ThatsAlok17-May-06 20:38
ThatsAlok17-May-06 20:38 
AnswerRe: no private no protected oops only public Pin
Stephen Hewitt17-May-06 21:05
Stephen Hewitt17-May-06 21:05 
Questionhow to write a string to my picture which is maintained by a Bitmap(GDI+) object? Pin
samfromcn17-May-06 19:51
samfromcn17-May-06 19:51 
AnswerRe: how to type a string on my window? Pin
Hamid_RT17-May-06 19:59
Hamid_RT17-May-06 19:59 
GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:29
samfromcn17-May-06 20:29 
AnswerRe: how to type a string on my window? Pin
Laxman Auti17-May-06 20:00
Laxman Auti17-May-06 20:00 
GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:33
samfromcn17-May-06 20:33 
AnswerRe: how to type a string on my window? Pin
Ganesh_T17-May-06 20:00
Ganesh_T17-May-06 20:00 
AnswerRe: how to type a string on my window? Pin
Hamid_RT17-May-06 20:11
Hamid_RT17-May-06 20:11 
GeneralRe: how to type a string on my window? Pin
samfromcn17-May-06 20:36
samfromcn17-May-06 20:36 
QuestionNeed help!!! Pin
samfromcn18-May-06 15:27
samfromcn18-May-06 15:27 
QuestionDifference between "C structure" and "C++ structure". Pin
Scorpio17-May-06 19:38
Scorpio17-May-06 19:38 
AnswerRe: Difference between "C structure" and "C++ structure". Pin
_AnsHUMAN_ 17-May-06 19:46
_AnsHUMAN_ 17-May-06 19:46 
GeneralRe: Difference between "C structure" and "C++ structure". Pin
Scorpio17-May-06 19:49
Scorpio17-May-06 19:49 

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.