Click here to Skip to main content
15,925,499 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File searching Pin
Dudi Avramov28-May-03 3:13
Dudi Avramov28-May-03 3:13 
QuestionHow to 'talk' to an OPC server Pin
Vassili27-May-03 21:03
Vassili27-May-03 21:03 
Generaldisable/enable network adapter card on NT4 Pin
Member 36342727-May-03 20:34
Member 36342727-May-03 20:34 
GeneralRe: disable/enable network adapter card on NT4 Pin
David Crow28-May-03 4:30
David Crow28-May-03 4:30 
Generalstatic function access member variable and member function Pin
yccheok27-May-03 20:09
yccheok27-May-03 20:09 
GeneralRe: static function access member variable and member function Pin
Daniel Strigl27-May-03 20:25
Daniel Strigl27-May-03 20:25 
GeneralRe: static function access member variable and member function Pin
John R. Shaw27-May-03 20:59
John R. Shaw27-May-03 20:59 
GeneralRe: static function access member variable and member function Pin
John R. Shaw27-May-03 20:47
John R. Shaw27-May-03 20:47 
According to your question you want to pass a callback to a library function, but your code is not passing a callback to any thing.

This is not passing a pointer to callback.
void CXFaceRecognitionDlg::callback(IplImage* image)
{
    DetectAndDrawFaces( image ); // c function lib
    //????but how to update CXFaceRecognitionDlg GUI????
}

It sounds more like you are looking for some thing like this:
DetectAndDrawFaces(callback);

If you want a better answer then you need to give at least the prototype for the function requiring the pointer to the call back function.

You are correct that if you are passing a member function pointer it must be a static function pointer. Take a look at qsort() in the MFC Library to see how it is done in C and then see if you can figure out how to pass a static function pointer to qsort() [that will give the answer to your question]. You can also try looking at the articles on subclassing and hooking.

Trust in the code Luke. Yea right!
GeneralQuestion for the strong Pin
aguest27-May-03 19:17
aguest27-May-03 19:17 
GeneralRe: Question for the strong Pin
John R. Shaw27-May-03 19:53
John R. Shaw27-May-03 19:53 
GeneralRe: Question for the strong Pin
qweas27-May-03 19:56
qweas27-May-03 19:56 
GeneralRe: Question for the strong Pin
aguest27-May-03 22:30
aguest27-May-03 22:30 
GeneralRe: Question for the strong Pin
Rage28-May-03 1:21
professionalRage28-May-03 1:21 
GeneralRe: Question for the strong Pin
MemLeak28-May-03 2:58
MemLeak28-May-03 2:58 
GeneralRe: Question for the strong Pin
aguest28-May-03 6:20
aguest28-May-03 6:20 
GeneralRe: Question for the strong Pin
aguest28-May-03 6:29
aguest28-May-03 6:29 
GeneralRe: Question for the strong Pin
MemLeak29-May-03 5:24
MemLeak29-May-03 5:24 
GeneralCaputuring all keystrokes Pin
SAK27-May-03 18:42
SAK27-May-03 18:42 
GeneralRe: Caputuring all keystrokes Pin
J. Dunlap27-May-03 19:35
J. Dunlap27-May-03 19:35 
GeneralRe: Caputuring all keystrokes Pin
SAK28-May-03 6:01
SAK28-May-03 6:01 
Questionhow can I close a windows process from a windows sevice Pin
fftongzhi27-May-03 17:50
fftongzhi27-May-03 17:50 
AnswerRe: how can I close a windows process from a windows sevice Pin
billdwilson328-May-03 10:27
billdwilson328-May-03 10:27 
GeneralRe: how can I close a windows process from a windows sevice Pin
fftongzhi28-May-03 15:08
fftongzhi28-May-03 15:08 
Generalshog9,please help me Pin
swandream27-May-03 17:25
swandream27-May-03 17:25 
Questionhow can I open a database in one NT service? Pin
diyzhao27-May-03 17:10
diyzhao27-May-03 17:10 

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.