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

C / C++ / MFC

 
GeneralWater-wall Pin
DinaMazor3-May-05 1:19
DinaMazor3-May-05 1:19 
GeneralRe: Water-wall Pin
QuiJohn3-May-05 2:01
QuiJohn3-May-05 2:01 
GeneralRe: Water-wall Pin
Blake Miller3-May-05 7:38
Blake Miller3-May-05 7:38 
Generalhide from application list Pin
3-May-05 0:42
suss3-May-05 0:42 
GeneralRe: hide from application list Pin
ThatsAlok3-May-05 1:00
ThatsAlok3-May-05 1:00 
GeneralCan't compile function template on VC7.1 Pin
Teerayoot2-May-05 23:48
Teerayoot2-May-05 23:48 
GeneralRe: Can't compile function template on VC7.1 Pin
ThatsAlok2-May-05 23:59
ThatsAlok2-May-05 23:59 
GeneralRe: Can't compile function template on VC7.1 Pin
Rahim Rattani3-May-05 0:25
Rahim Rattani3-May-05 0:25 
try using as

template<typename T><br />
inline const T& getMax ( const T& a, const T& b) <br />
{ <br />
return a < b ? b : a ; <br />
}


The problem is with the name of the function. I have renamed it from "max" to "getMax" because macros with the name "min" and "max" already exist in stdlib.h, and same name of the function as those macros caused the errors.


Rahim Rattani
Software Engineer,
Matrix Systems (Pvt) Ltd.,
Karachi - Pakistan
GeneralRe: Can't compile function template on VC7.1 Pin
Teerayoot3-May-05 2:07
Teerayoot3-May-05 2:07 
QuestionHow to do this???? Pin
eli150219792-May-05 23:41
eli150219792-May-05 23:41 
AnswerRe: How to do this???? Pin
Rahim Rattani2-May-05 23:57
Rahim Rattani2-May-05 23:57 
AnswerRe: How to do this???? Pin
toxcct3-May-05 0:10
toxcct3-May-05 0:10 
AnswerRe: How to do this???? Pin
Blake Miller3-May-05 8:04
Blake Miller3-May-05 8:04 
QuestionGroup calendar control ? Pin
Bernhard2-May-05 23:39
Bernhard2-May-05 23:39 
GeneralSetWindowRgn() for buttons Pin
Asha Udupa2-May-05 23:24
Asha Udupa2-May-05 23:24 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi2-May-05 23:40
Behzad Ebrahimi2-May-05 23:40 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa2-May-05 23:45
Asha Udupa2-May-05 23:45 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:01
ThatsAlok3-May-05 0:01 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:05
Asha Udupa3-May-05 0:05 
GeneralRe: SetWindowRgn() for buttons Pin
Behzad Ebrahimi3-May-05 0:14
Behzad Ebrahimi3-May-05 0:14 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:25
Asha Udupa3-May-05 0:25 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:28
ThatsAlok3-May-05 0:28 
GeneralRe: SetWindowRgn() for buttons Pin
Asha Udupa3-May-05 0:30
Asha Udupa3-May-05 0:30 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:39
ThatsAlok3-May-05 0:39 
GeneralRe: SetWindowRgn() for buttons Pin
ThatsAlok3-May-05 0:58
ThatsAlok3-May-05 0:58 

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.