Click here to Skip to main content
15,913,584 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: program code fro a tough question Pin
Christian Graus17-May-07 1:07
protectorChristian Graus17-May-07 1:07 
GeneralRe: program code fro a tough question Pin
MaddySays17-May-07 1:18
MaddySays17-May-07 1:18 
GeneralRe: program code fro a tough question Pin
Christian Graus17-May-07 1:32
protectorChristian Graus17-May-07 1:32 
GeneralRe: program code for a tough question Pin
MaddySays17-May-07 1:45
MaddySays17-May-07 1:45 
GeneralRe: program code for a tough question Pin
Christian Graus17-May-07 2:13
protectorChristian Graus17-May-07 2:13 
Questionstrcat_s question [modified] Pin
Stick^16-May-07 12:48
Stick^16-May-07 12:48 
AnswerRe: strcat_s question Pin
Christian Graus16-May-07 13:10
protectorChristian Graus16-May-07 13:10 
QuestionError 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 5:55
subramanyeswari16-May-07 5:55 
Hi,

I have a function for comaring.

int DataPeakCompareFunc(const void *el1, const void *el2)
{
const DataPeak *peak1 = reinterpret_cast<const datapeak="" *="">(el1);
const DataPeak *peak2 = reinterpret_cast<const datapeak="" *="">(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: Error 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 6:02
subramanyeswari16-May-07 6:02 
GeneralRe: Error 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
Mark Salsbery16-May-07 6:33
Mark Salsbery16-May-07 6:33 
Questionlnk2028 unresolved token Pin
subramanyeswari16-May-07 2:16
subramanyeswari16-May-07 2:16 
AnswerRe: lnk2028 unresolved token Pin
Mark Salsbery16-May-07 5:48
Mark Salsbery16-May-07 5:48 
GeneralRe: lnk2028 unresolved token Pin
subramanyeswari16-May-07 5:51
subramanyeswari16-May-07 5:51 
QuestionLogging Pin
hansipet16-May-07 0:06
hansipet16-May-07 0:06 
AnswerRe: Logging Pin
sthotakura21-May-07 21:24
sthotakura21-May-07 21:24 
Questioninterface and main in vc++2005...help please Pin
lavy288315-May-07 22:14
lavy288315-May-07 22:14 
AnswerRe: interface and main in vc++2005...help please Pin
lavy288315-May-07 22:41
lavy288315-May-07 22:41 
AnswerRe: interface and main in vc++2005...help please [modified] Pin
prasad_som15-May-07 23:20
prasad_som15-May-07 23:20 
AnswerRe: interface and main in vc++2005...help please Pin
Mark Salsbery16-May-07 5:53
Mark Salsbery16-May-07 5:53 
GeneralRe: interface and main in vc++2005...help please Pin
lavy288316-May-07 5:58
lavy288316-May-07 5:58 
Questionwhat is the difference in this? Pin
syedhasan15-May-07 18:32
syedhasan15-May-07 18:32 
QuestionTIMESTAMP_STRUCT from MFC to forms Pin
earlgraham15-May-07 10:02
earlgraham15-May-07 10:02 
AnswerRe: TIMESTAMP_STRUCT from MFC to forms Pin
Mark Salsbery15-May-07 13:44
Mark Salsbery15-May-07 13:44 
GeneralRe: TIMESTAMP_STRUCT from MFC to forms Pin
earlgraham16-May-07 5:31
earlgraham16-May-07 5:31 
Questionpointers and structures Pin
klutez12315-May-07 2:49
klutez12315-May-07 2:49 

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.