Click here to Skip to main content
15,845,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionClass member function as call back Pin
NoviceEx14-Mar-19 3:41
NoviceEx14-Mar-19 3:41 
AnswerRe: Class member function as call back Pin
Richard MacCutchan14-Mar-19 4:27
mveRichard MacCutchan14-Mar-19 4:27 
GeneralRe: Class member function as call back Pin
NoviceEx14-Mar-19 5:01
NoviceEx14-Mar-19 5:01 
GeneralRe: Class member function as call back Pin
Richard MacCutchan14-Mar-19 5:05
mveRichard MacCutchan14-Mar-19 5:05 
AnswerRe: Class member function as call back Pin
CPallini14-Mar-19 5:16
mveCPallini14-Mar-19 5:16 
AnswerRe: Class member function as call back Pin
Richard MacCutchan14-Mar-19 6:00
mveRichard MacCutchan14-Mar-19 6:00 
GeneralRe: Class member function as call back Pin
NoviceEx14-Mar-19 22:29
NoviceEx14-Mar-19 22:29 
GeneralRe: Class member function as call back Pin
CPallini14-Mar-19 23:44
mveCPallini14-Mar-19 23:44 
As I told before, I am afraid you cannot (see, for instance c++ - Is it possible to bind() *this to class member function to make a callback to C API - Stack Overflow[^]).


If you cannot modify my_init_control the you have to provide a compliant (that is a C-like) callback. In such a callback you might do the dirty work of accessing the class methods.
GeneralRe: Class member function as call back Pin
Richard MacCutchan15-Mar-19 0:02
mveRichard MacCutchan15-Mar-19 0:02 
GeneralRe: Class member function as call back Pin
CPallini15-Mar-19 2:49
mveCPallini15-Mar-19 2:49 
GeneralRe: Class member function as call back Pin
Richard MacCutchan15-Mar-19 3:57
mveRichard MacCutchan15-Mar-19 3:57 
AnswerRe: Class member function as call back Pin
Stefan_Lang19-Mar-19 5:07
Stefan_Lang19-Mar-19 5:07 
QuestionWin32++ Dialog Pin
Member 1372187514-Mar-19 2:32
Member 1372187514-Mar-19 2:32 
AnswerRe: Win32++ Dialog Pin
Richard MacCutchan14-Mar-19 2:58
mveRichard MacCutchan14-Mar-19 2:58 
GeneralRe: Win32++ Dialog Pin
CPallini14-Mar-19 3:30
mveCPallini14-Mar-19 3:30 
GeneralRe: Win32++ Dialog Pin
Richard MacCutchan14-Mar-19 3:35
mveRichard MacCutchan14-Mar-19 3:35 
AnswerRe: Win32++ Dialog Pin
leon de boer14-Mar-19 15:34
leon de boer14-Mar-19 15:34 
QuestionGet file size Pin
_Flaviu14-Mar-19 1:31
_Flaviu14-Mar-19 1:31 
AnswerRe: Get file size Pin
CPallini14-Mar-19 2:09
mveCPallini14-Mar-19 2:09 
GeneralRe: Get file size Pin
_Flaviu14-Mar-19 2:20
_Flaviu14-Mar-19 2:20 
GeneralRe: Get file size Pin
CPallini14-Mar-19 2:24
mveCPallini14-Mar-19 2:24 
QuestionGet system image list not working in some cases Pin
_Flaviu13-Mar-19 8:07
_Flaviu13-Mar-19 8:07 
SuggestionRe: Get system image list not working in some cases Pin
Richard MacCutchan13-Mar-19 23:18
mveRichard MacCutchan13-Mar-19 23:18 
GeneralRe: Get system image list not working in some cases Pin
_Flaviu14-Mar-19 1:16
_Flaviu14-Mar-19 1:16 
QuestionWrite in registry Pin
_Flaviu13-Mar-19 1:04
_Flaviu13-Mar-19 1:04 

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.