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

C / C++ / MFC

 
GeneralRe: Can I Call virutal function from a default Constructor in c++ Pin
Blake Miller30-Nov-06 8:13
Blake Miller30-Nov-06 8:13 
GeneralRe: Can I Call virutal function from a default Constructor in c++ Pin
Waldermort30-Nov-06 9:11
Waldermort30-Nov-06 9:11 
AnswerRe: Can I Call virutal function from a default Constructor in c++ Pin
Cedric Moonen30-Nov-06 1:31
Cedric Moonen30-Nov-06 1:31 
QuestionCannot Overload sizeof Operator in C++ Why? Pin
phijophlip30-Nov-06 0:31
phijophlip30-Nov-06 0:31 
AnswerRe: Cannot Overload sizeof Operator in C++ Why? Pin
toxcct30-Nov-06 2:36
toxcct30-Nov-06 2:36 
GeneralRe: Cannot Overload sizeof Operator in C++ Why? Pin
James R. Twine30-Nov-06 5:15
James R. Twine30-Nov-06 5:15 
Questionmin and max Pin
Waldermort30-Nov-06 0:05
Waldermort30-Nov-06 0:05 
AnswerRe: min and max Pin
Chris Losinger30-Nov-06 3:54
professionalChris Losinger30-Nov-06 3:54 
something like this?

#define range(_x, _lo, _hi) (max(min((_x), (_hi)), (_lo))

or, even better:

template < class T> _inline T t_min (const T &i, const T &j) 
{ return ((i < j) ? i : j); }

template < class T> _inline T t_max (const T &i, const T &j) 
{ return ((i > j) ? i : j); }

template < class T> _inline T t_range (T _val, const T &_min, const T &_max) 
{ return t_max(t_min(_val, _max), _min); }

template < class T> _inline T t_clamp (T _val, const T &_min, const T &_max) 
{ _val = t_min(t_max(_val, _min), _max); return _val; }



GeneralRe: min and max Pin
Waldermort30-Nov-06 6:07
Waldermort30-Nov-06 6:07 
GeneralRe: min and max Pin
Chris Losinger30-Nov-06 6:10
professionalChris Losinger30-Nov-06 6:10 
Questionchanging 24 bit image to 16 or 8 bit image in VC++ Pin
Ruth Suhasini29-Nov-06 23:44
Ruth Suhasini29-Nov-06 23:44 
AnswerRe: changing 24 bit image to 16 or 8 bit image in VC++ Pin
#realJSOP30-Nov-06 0:16
professional#realJSOP30-Nov-06 0:16 
AnswerRe: changing 24 bit image to 16 or 8 bit image in VC++ Pin
flyalone30-Nov-06 15:57
flyalone30-Nov-06 15:57 
QuestionImage processing Pin
atbir29-Nov-06 23:12
atbir29-Nov-06 23:12 
AnswerRe: Image processing Pin
Christian Graus29-Nov-06 23:26
protectorChristian Graus29-Nov-06 23:26 
AnswerRe: Image processing Pin
Maximilien30-Nov-06 1:58
Maximilien30-Nov-06 1:58 
AnswerRe: Image processing Pin
Galatei30-Nov-06 4:04
Galatei30-Nov-06 4:04 
QuestionHow to change my project solution file.. Pin
Shah Satish29-Nov-06 22:57
Shah Satish29-Nov-06 22:57 
AnswerRe: How to change my project solution file.. Pin
Christian Graus29-Nov-06 23:26
protectorChristian Graus29-Nov-06 23:26 
QuestionAPI general Question Pin
Suresh H29-Nov-06 22:47
Suresh H29-Nov-06 22:47 
AnswerRe: API general Question Pin
Christian Graus29-Nov-06 23:11
protectorChristian Graus29-Nov-06 23:11 
GeneralRe: API general Question Pin
Suresh H29-Nov-06 23:14
Suresh H29-Nov-06 23:14 
GeneralRe: API general Question Pin
Galatei30-Nov-06 4:07
Galatei30-Nov-06 4:07 
QuestionGeneral question about versions of VC++ Pin
zizzzz29-Nov-06 22:07
zizzzz29-Nov-06 22:07 
AnswerRe: General question about versions of VC++ Pin
Cedric Moonen29-Nov-06 22:26
Cedric Moonen29-Nov-06 22:26 

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.