Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVista Pin
ShilpiP17-May-07 21:37
ShilpiP17-May-07 21:37 
AnswerRe: Vista Pin
_AnsHUMAN_ 17-May-07 21:42
_AnsHUMAN_ 17-May-07 21:42 
GeneralRe: Vista Pin
ShilpiP17-May-07 22:48
ShilpiP17-May-07 22:48 
GeneralRe: Vista Pin
kanduripavan17-May-07 22:56
kanduripavan17-May-07 22:56 
GeneralRe: Vista Pin
ShilpiP17-May-07 23:01
ShilpiP17-May-07 23:01 
AnswerRe: Vista Pin
zhang80060517-May-07 23:25
zhang80060517-May-07 23:25 
Questionerror C3867: 'Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc': function call missing argument list; use '&Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc' to create a pointer to member d:\cougar_io_development\cougar\core\libraries\c Pin
subramanyeswari17-May-07 21:33
subramanyeswari17-May-07 21:33 
AnswerRe: error C3867: 'Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc': function call missing argument list; use '&Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc' to create a pointer to member d:\cougar_io_development\cougar\core Pin
Nibu babu thomas17-May-07 21:40
Nibu babu thomas17-May-07 21:40 
subramanyeswari wrote:
qsort((void *)pScan, num_readings, sizeof(DataPeak), DataPeakCompareFunc);


qsort((void *)pScan, num_readings, sizeof(DataPeak), <code>&</code>DataPeakCompareFunc);


Remember that this function should not be member function. Either it should be static or a global function.

Lookup qsort. Here is the callback function signature.

int (__cdecl *compare )(const void *elem1, const void *elem2 )
BTW why are you posting the whole error as caption for your post. Looks odd.



Nibu thomas
A Developer

Programming tips[^]  My site[^]

GeneralRe: error C3867: 'Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc': function call missing argument list; use '&amp;amp;Thermo::Cougar::FConvert::OConvevw::DataPeakCompareFunc' to create a pointer to member d:\cougar_io_development\cougar\core Pin
subramanyeswari17-May-07 22:56
subramanyeswari17-May-07 22:56 
Answerqsort is crap! Pin
Stephen Hewitt17-May-07 21:40
Stephen Hewitt17-May-07 21:40 
GeneralRe: qsort is crap! Pin
Nibu babu thomas17-May-07 22:57
Nibu babu thomas17-May-07 22:57 
GeneralRe: qsort is crap! Pin
Rajesh R Subramanian17-May-07 23:44
professionalRajesh R Subramanian17-May-07 23:44 
GeneralRe: qsort is crap! Pin
Nibu babu thomas18-May-07 1:08
Nibu babu thomas18-May-07 1:08 
GeneralRe: qsort is crap! Pin
Rajesh R Subramanian18-May-07 1:16
professionalRajesh R Subramanian18-May-07 1:16 
GeneralRe: qsort is crap! Pin
Nibu babu thomas18-May-07 1:19
Nibu babu thomas18-May-07 1:19 
GeneralRe: qsort is crap! Pin
Stephen Hewitt20-May-07 14:25
Stephen Hewitt20-May-07 14:25 
JokeRe: qsort is crap! Pin
Rajesh R Subramanian18-May-07 1:01
professionalRajesh R Subramanian18-May-07 1:01 
GeneralRe: qsort is crap! Pin
Stephen Hewitt20-May-07 14:02
Stephen Hewitt20-May-07 14:02 
GeneralRe: qsort is crap! Pin
Stephen Hewitt20-May-07 14:16
Stephen Hewitt20-May-07 14:16 
JokeRe: qsort is crap! Pin
Rajesh R Subramanian20-May-07 20:15
professionalRajesh R Subramanian20-May-07 20:15 
GeneralRe: qsort is crap! Pin
Nemanja Trifunovic18-May-07 4:11
Nemanja Trifunovic18-May-07 4:11 
QuestionProblems by printing (number of pages) Pin
Nelek17-May-07 20:44
protectorNelek17-May-07 20:44 
AnswerSolved Pin
Nelek17-May-07 20:49
protectorNelek17-May-07 20:49 
QuestionAbout memory allocations Pin
Kiran Pinjala17-May-07 20:32
Kiran Pinjala17-May-07 20:32 
AnswerRe: About memory allocations Pin
Roger Stoltz17-May-07 22:33
Roger Stoltz17-May-07 22:33 

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.