Click here to Skip to main content
15,908,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: class with static functions and variables Pin
Anonymous8-Nov-03 3:25
Anonymous8-Nov-03 3:25 
GeneralRe: class with static functions and variables Pin
Kuniva8-Nov-03 4:20
Kuniva8-Nov-03 4:20 
GeneralWin32 message window Pin
pranavamhari7-Nov-03 23:33
pranavamhari7-Nov-03 23:33 
GeneralRe: Win32 message window Pin
Antti Keskinen8-Nov-03 12:18
Antti Keskinen8-Nov-03 12:18 
GeneralRe: Win32 message window Pin
Peter Molnar8-Nov-03 13:37
Peter Molnar8-Nov-03 13:37 
GeneralRe: Win32 message window Pin
pranavamhari8-Nov-03 15:05
pranavamhari8-Nov-03 15:05 
QuestionDo streams always have to be passed by reference? Pin
Link26007-Nov-03 22:44
Link26007-Nov-03 22:44 
AnswerRe: Do streams always have to be passed by reference? Pin
Andrew Walker8-Nov-03 13:17
Andrew Walker8-Nov-03 13:17 
Passing by reference ensures that the stream objects aren't copied. When dealing with streams this is extremely important. You can think of the iostream library as very smart wrappers for handles.

The constructor initialises the handle, and the destructor frees it.
If you copy a stream you get a copy of the handle, but you will end up trying to free the handle twice, once at the end of the local block and once at program shutdown.

As a rule of thumb:
For input only paramters
1/ pass by const reference (objects or anything expensive to copy)
2/ pass by value (primitive types)

For output or input/output parameters
1/ pass by reference


If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

General.lib in 6.0 Pin
LOSTTWARE.com7-Nov-03 21:11
LOSTTWARE.com7-Nov-03 21:11 
GeneralRe: .lib in 6.0 Pin
Mike Dimmick7-Nov-03 23:21
Mike Dimmick7-Nov-03 23:21 
GeneralChanging Printer Resolution at Run Time Pin
Tejas H Shah7-Nov-03 20:55
Tejas H Shah7-Nov-03 20:55 
GeneralLooping through all Outlook folders Pin
Anonymous7-Nov-03 20:33
Anonymous7-Nov-03 20:33 
GeneralLooping through all Outlook folders Pin
Anonymous7-Nov-03 20:33
Anonymous7-Nov-03 20:33 
GeneralRe: Looping through all Outlook folders Pin
Amit Dey8-Nov-03 0:43
Amit Dey8-Nov-03 0:43 
GeneralRe: Looping through all Outlook folders Pin
p_peto1-Jun-05 19:39
p_peto1-Jun-05 19:39 
GeneralDirectShow Video Standard Question Pin
Atif Mushtaq7-Nov-03 19:59
Atif Mushtaq7-Nov-03 19:59 
Generalredistribute crystal report 6.0 Pin
murali_utr7-Nov-03 18:30
murali_utr7-Nov-03 18:30 
GeneralRe: redistribute crystal report 6.0 Pin
Tejas H Shah7-Nov-03 21:38
Tejas H Shah7-Nov-03 21:38 
GeneralRe: redistribute crystal report 6.0 Pin
murali_utr7-Nov-03 22:09
murali_utr7-Nov-03 22:09 
GeneralRe: redistribute crystal report 6.0 Pin
Tejas H Shah7-Nov-03 23:41
Tejas H Shah7-Nov-03 23:41 
GeneralRe: redistribute crystal report 6.0 Pin
Jörgen Sigvardsson8-Nov-03 1:18
Jörgen Sigvardsson8-Nov-03 1:18 
GeneralRe: redistribute crystal report 6.0 Pin
Anthony_Yio9-Nov-03 19:45
Anthony_Yio9-Nov-03 19:45 
QuestionHow can get CD-ROM(DVD-ROM) Informations in Windwos Platform? Pin
HansonDavid7-Nov-03 17:51
HansonDavid7-Nov-03 17:51 
AnswerRe: How can get CD-ROM(DVD-ROM) Informations in Windwos Platform? Pin
Ahmed Galal8-Nov-03 2:42
Ahmed Galal8-Nov-03 2:42 
GeneralRe: How can get CD-ROM(DVD-ROM) Informations in Windwos Platform? Pin
HansonDavid8-Nov-03 3:01
HansonDavid8-Nov-03 3: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.