Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: incremental complilation != precompiled headers Pin
Tim Smith15-Nov-05 2:53
Tim Smith15-Nov-05 2:53 
QuestionHow to get pure image data from jpeg buffer Pin
Kenan Aksoy14-Nov-05 2:52
Kenan Aksoy14-Nov-05 2:52 
AnswerRe: How to get pure image data from jpeg buffer Pin
Chris Losinger14-Nov-05 4:04
professionalChris Losinger14-Nov-05 4:04 
AnswerRe: How to get pure image data from jpeg buffer Pin
Mircea Puiu14-Nov-05 4:16
Mircea Puiu14-Nov-05 4:16 
Questiondo they belong to overload? Pin
vividwu14-Nov-05 2:42
vividwu14-Nov-05 2:42 
AnswerRe: do they belong to overload? Pin
jhwurmbach14-Nov-05 3:02
jhwurmbach14-Nov-05 3:02 
GeneralRe: do they belong to overload? Pin
vividwu14-Nov-05 3:08
vividwu14-Nov-05 3:08 
AnswerRe: do they belong to overload? Pin
Bob Stanneveld14-Nov-05 4:56
Bob Stanneveld14-Nov-05 4:56 
Hello,

Whether two functions should be overloaded or not should not be determined by the parameter list. Functions should only be overloaded if they do the same thing with different parameters!

The following example illustrates:
class DoOverload
{
public:
    // The following methods should be combined and overloaded
    void AddOneInteger(int nValueToAdd);
    void AddTowIntegers(int nVal1, int nVal2);

    // into the following function
    void AddInteger(int nVal1);
    void AddInteger(int nVal1, int nVal2);
};

class DontOverload
{
public:
    // The following functions have the same parameters, but do 
    // different things. Therefore they should not be overloaded.
    void DoFoo(int i);
    void DoBar(int i);
};


Hope this helps Big Grin | :-D

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: do they belong to overload? Pin
vividwu15-Nov-05 1:18
vividwu15-Nov-05 1:18 
GeneralRe: do they belong to overload? Pin
Bob Stanneveld15-Nov-05 5:48
Bob Stanneveld15-Nov-05 5:48 
GeneralRe: do they belong to overload? Pin
vividwu15-Nov-05 12:21
vividwu15-Nov-05 12:21 
GeneralRe: do they belong to overload? Pin
Bob Stanneveld15-Nov-05 22:32
Bob Stanneveld15-Nov-05 22:32 
QuestionRecycle bin thing Pin
johny_d14-Nov-05 2:26
johny_d14-Nov-05 2:26 
AnswerRe: Recycle bin thing Pin
Mike Dimmick14-Nov-05 2:46
Mike Dimmick14-Nov-05 2:46 
QuestionGetting Image Size Pin
raed14-Nov-05 1:48
raed14-Nov-05 1:48 
AnswerRe: Getting Image Size Pin
YaronNir14-Nov-05 2:27
YaronNir14-Nov-05 2:27 
GeneralRe: Getting Image Size Pin
raed14-Nov-05 2:34
raed14-Nov-05 2:34 
GeneralRe: Getting Image Size Pin
Mircea Puiu14-Nov-05 4:40
Mircea Puiu14-Nov-05 4:40 
Questionlaunching windows exploere in 'Film Strip' mode Pin
YaronNir14-Nov-05 1:23
YaronNir14-Nov-05 1:23 
QuestionRe: launching windows exploere in 'Film Strip' mode Pin
David Crow14-Nov-05 2:33
David Crow14-Nov-05 2:33 
AnswerRe: launching windows exploere in 'Film Strip' mode Pin
YaronNir14-Nov-05 2:38
YaronNir14-Nov-05 2:38 
General[Message Deleted] Pin
David Crow14-Nov-05 2:45
David Crow14-Nov-05 2:45 
GeneralRe: launching windows exploere in 'Film Strip' mode Pin
YaronNir14-Nov-05 2:45
YaronNir14-Nov-05 2:45 
GeneralRe: launching windows exploere in 'Film Strip' mode Pin
David Crow14-Nov-05 3:00
David Crow14-Nov-05 3:00 
GeneralRe: launching windows exploere in 'Film Strip' mode Pin
YaronNir14-Nov-05 3:02
YaronNir14-Nov-05 3:02 

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.