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

C / C++ / MFC

 
GeneralRe: Notification for a file creation Pin
Vijjuuu.27-May-08 20:03
Vijjuuu.27-May-08 20:03 
GeneralRe: Notification for a file creation Pin
Jijo.Raj27-May-08 20:09
Jijo.Raj27-May-08 20:09 
GeneralRe: Notification for a file creation Pin
Nelek27-May-08 22:07
protectorNelek27-May-08 22:07 
GeneralRe: Notification for a file creation Pin
prithaa28-May-08 3:07
prithaa28-May-08 3:07 
AnswerRe: Notification for a file creation Pin
Naveen27-May-08 20:29
Naveen27-May-08 20:29 
GeneralRe: Notification for a file creation Pin
Jijo.Raj27-May-08 20:49
Jijo.Raj27-May-08 20:49 
AnswerRe: Notification for a file creation Pin
Hamid_RT28-May-08 2:48
Hamid_RT28-May-08 2:48 
QuestionUninitialise memory read Pin
deepesh kumar27-May-08 19:39
deepesh kumar27-May-08 19:39 
#include <algorithm>
#include <vector>
#include <functional>
#include <list>


using namespace std;
typedef list<int> LIST_INT;


bool IsOdd (int i) {
return ((i%2)==1);
}

int AbsToRelPosition(LIST_INT list1, int value)
{


LIST_INT::iterator pos;

pos = find_if(list1.begin(), list1.end(),bind2nd(greater<int>(), 1));


return 0;
}



int main () {

LIST_INT m_shown_cols; //shown column list
LIST_INT m_hid_cols; //hidden column list

LIST_INT m_shown_rows; //shown rows list
LIST_INT m_hid_rows; //hidden rows list


for (int i = 0; i < 2; i++)
{
m_shown_rows.push_back(i);
}

for (int j = 0; j < 4; j++)
{
m_shown_cols.push_back(j);
}

int place = AbsToRelPosition(m_shown_cols, 1);
LIST_INT::iterator pos;
pos = find_if(m_shown_cols.begin(), m_shown_cols.end(), bind2nd( greater<int>(), 1));

}

in this piece of code i am getting UMR(using purifier) in find_if using in AbsToRelPosition function but if i am using same piece of code in main function as shown above in my code purifier is not showing UMR.Pls help me wht would be the reason.
thanking you
Deepesh

deepesh

Questionhow to selective loading BHO in Chtmlview environment [modified] Pin
ftbk27-May-08 16:28
ftbk27-May-08 16:28 
AnswerRe: how to selective loading BHO in Chtmlview environment Pin
Rajkumar R27-May-08 20:32
Rajkumar R27-May-08 20:32 
GeneralRe: how to selective loading BHO in Chtmlview environment Pin
ftbk27-May-08 21:49
ftbk27-May-08 21:49 
Questionsave dialog Pin
lahom27-May-08 15:54
lahom27-May-08 15:54 
AnswerRe: save dialog Pin
David Crow27-May-08 16:00
David Crow27-May-08 16:00 
GeneralRe: save dialog Pin
lahom27-May-08 16:14
lahom27-May-08 16:14 
GeneralRe: save dialog Pin
David Crow27-May-08 16:25
David Crow27-May-08 16:25 
GeneralRe: save dialog Pin
lahom27-May-08 16:39
lahom27-May-08 16:39 
GeneralRe: save dialog Pin
SandipG 27-May-08 18:30
SandipG 27-May-08 18:30 
GeneralRe: save dialog Pin
lahom28-May-08 21:27
lahom28-May-08 21:27 
QuestionWaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 15:40
rp_suman27-May-08 15:40 
AnswerRe: WaitForSingleobject vs SetTimer Pin
David Crow27-May-08 16:01
David Crow27-May-08 16:01 
QuestionRe: WaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 17:12
rp_suman27-May-08 17:12 
AnswerRe: WaitForSingleobject vs SetTimer Pin
SandipG 27-May-08 18:35
SandipG 27-May-08 18:35 
GeneralRe: WaitForSingleobject vs SetTimer Pin
rp_suman27-May-08 20:55
rp_suman27-May-08 20:55 
AnswerRe: WaitForSingleobject vs SetTimer Pin
Nelek27-May-08 22:02
protectorNelek27-May-08 22:02 
GeneralRe: WaitForSingleobject vs SetTimer Pin
rp_suman28-May-08 4:05
rp_suman28-May-08 4:05 

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.