Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deleting a pointer to CString Pin
toxcct27-Oct-06 2:15
toxcct27-Oct-06 2:15 
GeneralRe: Deleting a pointer to CString Pin
Cedric Moonen27-Oct-06 2:25
Cedric Moonen27-Oct-06 2:25 
GeneralRe: Deleting a pointer to CString Pin
toxcct27-Oct-06 2:29
toxcct27-Oct-06 2:29 
QuestionRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 3:37
Zac Howland27-Oct-06 3:37 
AnswerRe: Deleting a pointer to CString Pin
Cedric Moonen27-Oct-06 3:42
Cedric Moonen27-Oct-06 3:42 
GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 3:51
Zac Howland27-Oct-06 3:51 
GeneralRe: Deleting a pointer to CString Pin
Cedric Moonen27-Oct-06 4:04
Cedric Moonen27-Oct-06 4:04 
GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 4:07
Zac Howland27-Oct-06 4:07 
Cedric Moonen wrote:
Not at all. In fact, I have in general some functions that are global but they are limited (and then, I use namespace if it is possible to group them). In fact, I never came to a situation like: "ok, I have this function and I don't know in which class to put it, let's make a class to wrap it".


Ah, so you do use globals behind a namespace then? You had me worried there for a second Poke tongue | ;-P

Generally, when I'm writing classes, I try to not put as many functions as possible (that make sense, obviously) inside the class. They will be "packaged" with the class (usually defined in the same header file and part of the same namespace), but not actually be in the class.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 3:35
Zac Howland27-Oct-06 3:35 
GeneralRe: Deleting a pointer to CString Pin
Mark Salsbery27-Oct-06 5:42
Mark Salsbery27-Oct-06 5:42 
GeneralRe: Deleting a pointer to CString Pin
David Crow27-Oct-06 5:59
David Crow27-Oct-06 5:59 
GeneralRe: Deleting a pointer to CString Pin
Mark Salsbery27-Oct-06 6:07
Mark Salsbery27-Oct-06 6:07 
GeneralRe: Deleting a pointer to CString Pin
Kevin McFarlane27-Oct-06 6:14
Kevin McFarlane27-Oct-06 6:14 
GeneralRe: Deleting a pointer to CString Pin
Mark Salsbery27-Oct-06 6:32
Mark Salsbery27-Oct-06 6:32 
GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 6:19
Zac Howland27-Oct-06 6:19 
GeneralRe: Deleting a pointer to CString Pin
Mark Salsbery27-Oct-06 6:38
Mark Salsbery27-Oct-06 6:38 
GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 6:16
Zac Howland27-Oct-06 6:16 
GeneralRe: Deleting a pointer to CString Pin
Kevin McFarlane27-Oct-06 8:21
Kevin McFarlane27-Oct-06 8:21 
GeneralRe: Deleting a pointer to CString Pin
Zac Howland27-Oct-06 8:46
Zac Howland27-Oct-06 8:46 
GeneralRe: Deleting a pointer to CString Pin
S Douglas29-Oct-06 0:39
professionalS Douglas29-Oct-06 0:39 
AnswerRe: Deleting a pointer to CString Pin
Haakon S.27-Oct-06 8:55
Haakon S.27-Oct-06 8:55 
Questionneed information about .pst files Pin
vijay_aroli27-Oct-06 0:51
vijay_aroli27-Oct-06 0:51 
AnswerRe: need information about .pst files Pin
toxcct27-Oct-06 0:54
toxcct27-Oct-06 0:54 
QuestionRe: need information about .pst files Pin
vijay_aroli27-Oct-06 1:13
vijay_aroli27-Oct-06 1:13 
AnswerRe: need information about .pst files Pin
David Crow27-Oct-06 4:01
David Crow27-Oct-06 4:01 

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.