Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: callback functions Pin
Chris Losinger30-Oct-02 9:39
professionalChris Losinger30-Oct-02 9:39 
GeneralRe: callback functions Pin
S van Leent30-Oct-02 8:54
S van Leent30-Oct-02 8:54 
GeneralSnippet Pin
Chris Losinger30-Oct-02 9:41
professionalChris Losinger30-Oct-02 9:41 
GeneralRe: Snippet Pin
devvvy30-Oct-02 9:57
devvvy30-Oct-02 9:57 
GeneralWondering Why,... Pin
ursus zeta30-Oct-02 11:10
ursus zeta30-Oct-02 11:10 
GeneralRe: Wondering Why,... Pin
Chris Losinger30-Oct-02 11:28
professionalChris Losinger30-Oct-02 11:28 
GeneralRe: Wondering Why,... Pin
ursus zeta30-Oct-02 12:33
ursus zeta30-Oct-02 12:33 
GeneralRe: Wondering Why,... Pin
ian mariano30-Oct-02 21:51
ian mariano30-Oct-02 21:51 
You might want to check out all the recent C++ articles on creating delegates using STL, which are essentially a breed of C++-esque callback.

Though frowned upon in OOP, incidentally, you can use straight callback functions in C++. I've done it where a C program calls a DLL C function stub which is defined in a .cpp file, which in turn passes it onto an object instance, with a callback as a parameter. The C++ instance, after doing some work, later calls the callback. Pretty convoluted, but a project I worked on required it.

-- ian



"The greatest danger to humanity is humanity without an open mind."
- Ian Mariano


http://www.ian-space.com/
GeneralDeletting EOF Pin
José Luis Sogorb30-Oct-02 8:34
José Luis Sogorb30-Oct-02 8:34 
GeneralRe: Deletting EOF Pin
Chris Losinger30-Oct-02 8:52
professionalChris Losinger30-Oct-02 8:52 
QuestionHow to check duplicate line in text file? Pin
ooosawaddee330-Oct-02 8:25
ooosawaddee330-Oct-02 8:25 
AnswerRe: How to check duplicate line in text file? Pin
Maximilien30-Oct-02 8:32
Maximilien30-Oct-02 8:32 
AnswerRe: How to check duplicate line in text file? Pin
Le centriste30-Oct-02 8:41
Le centriste30-Oct-02 8:41 
AnswerRe: How to check duplicate line in text file? Pin
Christian Graus30-Oct-02 10:32
protectorChristian Graus30-Oct-02 10:32 
GeneralMultiple Dialog Boxes Pin
Ayush30-Oct-02 7:19
Ayush30-Oct-02 7:19 
GeneralRe: Multiple Dialog Boxes Pin
dabs30-Oct-02 7:36
dabs30-Oct-02 7:36 
GeneralRe: Multiple Dialog Boxes Pin
#realJSOP30-Oct-02 7:38
mve#realJSOP30-Oct-02 7:38 
GeneralRe: Multiple Dialog Boxes Pin
Ayush30-Oct-02 7:55
Ayush30-Oct-02 7:55 
GeneralCEPB 2.12 Compiler Refuses to Generate LIB File for DLL Pin
#realJSOP30-Oct-02 7:18
mve#realJSOP30-Oct-02 7:18 
GeneralRe: WCHAR* Pin
Stephane Rodriguez.30-Oct-02 7:13
Stephane Rodriguez.30-Oct-02 7:13 
GeneralRe: WCHAR* Pin
Christian Graus30-Oct-02 10:35
protectorChristian Graus30-Oct-02 10:35 
GeneralGODDAMN! with the bmp to jpg! please help! Pin
int01h30-Oct-02 7:03
int01h30-Oct-02 7:03 
GeneralRe: GODDAMN! with the bmp to jpg! please help! Pin
Chris Losinger30-Oct-02 7:12
professionalChris Losinger30-Oct-02 7:12 
GeneralRe: GODDAMN! with the bmp to jpg! please help! Pin
int01h30-Oct-02 7:16
int01h30-Oct-02 7:16 
GeneralRe: GODDAMN! with the bmp to jpg! please help! Pin
Chris Losinger30-Oct-02 7:20
professionalChris Losinger30-Oct-02 7:20 

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.