Click here to Skip to main content
16,016,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need to make a button (or checkbox) invisible.. Pin
Mark Salsbery16-May-07 7:47
Mark Salsbery16-May-07 7:47 
QuestionRe: Need to make a button (or checkbox) invisible.. Pin
rbid16-May-07 18:42
rbid16-May-07 18:42 
AnswerRe: Need to make a button (or checkbox) invisible.. Pin
Mark Salsbery17-May-07 5:19
Mark Salsbery17-May-07 5:19 
AnswerRe: Need to make a button (or checkbox) invisible.. Pin
normanS16-May-07 9:44
normanS16-May-07 9:44 
GeneralRe: Need to make a button (or checkbox) invisible.. Pin
rbid16-May-07 18:32
rbid16-May-07 18:32 
GeneralRe: Need to make a button (or checkbox) invisible.. Pin
normanS16-May-07 19:41
normanS16-May-07 19:41 
GeneralRe: Need to make a button (or checkbox) invisible.. Pin
normanS16-May-07 19:48
normanS16-May-07 19:48 
Question'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 5:59
subramanyeswari16-May-07 5:59 
Hi,

I have a function for comaring.

int DataPeakCompareFunc(const void *el1, const void *el2)
{
const DataPeak *peak1 = reinterpret_cast(el1);
const DataPeak *peak2 = reinterpret_cast(el2);

if (peak1->position < peak2->position)
{
return -1;
}
else if (peak2->position < peak1->position)
{
return 1;
}
return 0;
}


this is my qsort function

int (FConvert::OConvevw::*pt2Function) (const void*, const void*) = NULL;
pt2Function = &FConvert::OConvevw::DataPeakCompareFunc;
qsort((void*)pScan, num_readings, sizeof(DataPeak),pt2Function);

But i am getting this error

Error 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types d:\cougar_io_development\cougar\core\libraries\cplusplus\dlls\fconvert\OConvevw.h 789


both are residing in oconvevw.h file only.

What to do?

Thanks in advance.

Regards, Eswari
AnswerRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 6:00
subramanyeswari16-May-07 6:00 
AnswerRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
Mark Salsbery16-May-07 6:22
Mark Salsbery16-May-07 6:22 
QuestionRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
David Crow16-May-07 6:58
David Crow16-May-07 6:58 
AnswerRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 19:00
subramanyeswari16-May-07 19:00 
GeneralRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
David Crow17-May-07 2:33
David Crow17-May-07 2:33 
AnswerRe: 'qsort' : none of the 2 overloads could convert all the argument types Pin
Stephen Hewitt16-May-07 14:08
Stephen Hewitt16-May-07 14:08 
Questionint array problem Pin
prithaa16-May-07 5:48
prithaa16-May-07 5:48 
AnswerRe: int array problem Pin
Reagan Conservative16-May-07 6:01
Reagan Conservative16-May-07 6:01 
AnswerRe: int array problem Pin
Mark Salsbery16-May-07 6:07
Mark Salsbery16-May-07 6:07 
GeneralRe: int array problem Pin
ajitatif angajetor16-May-07 6:38
ajitatif angajetor16-May-07 6:38 
GeneralRe: int array problem Pin
bob1697216-May-07 6:46
bob1697216-May-07 6:46 
JokeRe: int array problem Pin
Mark Salsbery16-May-07 6:50
Mark Salsbery16-May-07 6:50 
GeneralRe: int array problem Pin
Mark Salsbery16-May-07 6:48
Mark Salsbery16-May-07 6:48 
AnswerRe: int array problem Pin
CPallini16-May-07 9:31
mveCPallini16-May-07 9:31 
AnswerRe: int array problem Pin
John R. Shaw16-May-07 22:34
John R. Shaw16-May-07 22:34 
QuestionAES encryption for steaming data for Windows Mobile 5.0 Pin
gauravzhere16-May-07 4:27
gauravzhere16-May-07 4:27 
AnswerRe: AES encryption for steaming data for Windows Mobile 5.0 Pin
JudyL_MD16-May-07 10:18
JudyL_MD16-May-07 10:18 

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.