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

C / C++ / MFC

 
GeneralRe: HRESULT to exception Pin
Michael Dunn14-Jun-06 18:45
sitebuilderMichael Dunn14-Jun-06 18:45 
GeneralRe: HRESULT to exception Pin
scoroop15-Jun-06 20:56
scoroop15-Jun-06 20:56 
GeneralRe: HRESULT to exception Pin
Michael Dunn15-Jun-06 21:13
sitebuilderMichael Dunn15-Jun-06 21:13 
QuestionSubject: GUI design in VS 2005 Pin
kitty514-Jun-06 2:57
kitty514-Jun-06 2:57 
AnswerRe: Subject: GUI design in VS 2005 Pin
Cedric Moonen14-Jun-06 3:12
Cedric Moonen14-Jun-06 3:12 
AnswerRe: Subject: GUI design in VS 2005 [modified] Pin
James R. Twine14-Jun-06 3:55
James R. Twine14-Jun-06 3:55 
QuestionSTL set_intersection Pin
Abhi Lahare14-Jun-06 2:53
Abhi Lahare14-Jun-06 2:53 
AnswerRe: STL set_intersection Pin
Laxman Auti14-Jun-06 3:09
Laxman Auti14-Jun-06 3:09 
Abhi Lahare wrote:

Can I use set_intersection function to find out the itersection of containers which contains user defined type objects


Yes you can.

For that you have create your binary predicate function and use it as a last parameter of the set_intersection function.

for e.g
bool mod_lesser (int elem1, int elem2 )<br />
{<br />
   if ( elem1 < 0 ) <br />
      elem1 = - elem1;<br />
   if ( elem2 < 0 ) <br />
      elem2 = - elem2;<br />
   return elem1 < elem2;<br />
}


you may change int to UDT.

Abhi Lahare wrote:
it works only with standard datatypes?


Not neccessary,It should works for UDT also. Smile | :)

Knock out 't' from can't,
You can if you think you can
Cool | :cool:
AnswerRe: STL set_intersection Pin
_AnsHUMAN_ 14-Jun-06 3:13
_AnsHUMAN_ 14-Jun-06 3:13 
AnswerRe: STL set_intersection Pin
Laxman Auti14-Jun-06 3:26
Laxman Auti14-Jun-06 3:26 
QuestionImageList in ListCtrl behaves differently in debug or release Pin
e-DJ14-Jun-06 2:47
e-DJ14-Jun-06 2:47 
GeneralRe: ImageList in ListCtrl behaves differently in debug or release Pin
Laxman Auti14-Jun-06 2:51
Laxman Auti14-Jun-06 2:51 
GeneralRe: ImageList in ListCtrl behaves differently in debug or release Pin
e-DJ24-Jul-06 6:13
e-DJ24-Jul-06 6:13 
AnswerRe: ImageList in ListCtrl behaves differently in debug or release Pin
Naveen14-Jun-06 2:57
Naveen14-Jun-06 2:57 
QuestionHow to hide the tabs in PropertyPage Pin
si_6914-Jun-06 2:43
si_6914-Jun-06 2:43 
AnswerRe: How to hide the tabs in PropertyPage Pin
Laxman Auti14-Jun-06 2:48
Laxman Auti14-Jun-06 2:48 
GeneralRe: How to hide the tabs in PropertyPage Pin
Naveen14-Jun-06 2:50
Naveen14-Jun-06 2:50 
GeneralRe: How to hide the tabs in PropertyPage Pin
Laxman Auti14-Jun-06 2:57
Laxman Auti14-Jun-06 2:57 
AnswerRe: How to hide the tabs in PropertyPage Pin
Naveen14-Jun-06 2:48
Naveen14-Jun-06 2:48 
QuestionRe: How to hide the tabs in PropertyPage Pin
David Crow14-Jun-06 4:07
David Crow14-Jun-06 4:07 
QuestionCompareFileTime problems Pin
LCI14-Jun-06 2:26
LCI14-Jun-06 2:26 
AnswerRe: CompareFileTime problems Pin
James R. Twine14-Jun-06 2:29
James R. Twine14-Jun-06 2:29 
GeneralRe: CompareFileTime problems Pin
LCI14-Jun-06 2:37
LCI14-Jun-06 2:37 
GeneralRe: CompareFileTime problems Pin
Cedric Moonen14-Jun-06 2:48
Cedric Moonen14-Jun-06 2:48 
GeneralRe: CompareFileTime problems Pin
James R. Twine14-Jun-06 3:00
James R. Twine14-Jun-06 3:00 

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.