Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAIM interfacing... Pin
Cam10-Dec-01 16:53
Cam10-Dec-01 16:53 
Questionwhy like this? Pin
cococut10-Dec-01 15:30
cococut10-Dec-01 15:30 
AnswerRe: why like this? Pin
Christian Graus10-Dec-01 15:38
protectorChristian Graus10-Dec-01 15:38 
AnswerRe: why like this? Pin
Christian Graus10-Dec-01 15:42
protectorChristian Graus10-Dec-01 15:42 
AnswerRe: why like this? Pin
Michael Dunn10-Dec-01 16:41
sitebuilderMichael Dunn10-Dec-01 16:41 
QuestionHow can I make address of a member-function (__cdecl *)??? Pin
10-Dec-01 9:39
suss10-Dec-01 9:39 
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Joaquín M López Muñoz10-Dec-01 10:05
Joaquín M López Muñoz10-Dec-01 10:05 
AnswerHere's how Pin
Ravi Bhavnani10-Dec-01 10:13
professionalRavi Bhavnani10-Dec-01 10:13 
Joaquín is right.

A standard solution to this common problem is to have 2 static items: (1) a pointer to a CMy object and (2) a function of the type you expect to pass as a parameter, eg:

static CMy* pMy = NULL;
 
static void StaticFunc()
{
  if (pMy != NULL) {
     pMy->Func();
  }
}
Then, have a CMy object set the static pMy to "this" before you pass StaticFunc() to CallIt(), eg:
CMy my;
pMy = &my;
CallIt (&StaticFunc);
Hope this helps.

/ravi

"There is always one more bug..."
ravib@ravib.com
http://www.ravib.com
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Ravi Bhavnani10-Dec-01 10:15
professionalRavi Bhavnani10-Dec-01 10:15 
AnswerRe: How can I make address of a member-function (__cdecl *)??? Pin
Fazlul Kabir10-Dec-01 10:40
Fazlul Kabir10-Dec-01 10:40 
AnswerSpecification of the problem. Pin
10-Dec-01 12:15
suss10-Dec-01 12:15 
GeneralRe: Specification of the problem. Pin
Joaquín M López Muñoz10-Dec-01 22:33
Joaquín M López Muñoz10-Dec-01 22:33 
GeneralRe: Specification of the problem. Pin
11-Dec-01 6:15
suss11-Dec-01 6:15 
GeneralRe: char* byte* DLL-VC++ and Delphi Please help ! Pin
Joaquín M López Muñoz10-Dec-01 9:37
Joaquín M López Muñoz10-Dec-01 9:37 
QuestionUSB support for VC++???? Pin
Johnny_8910-Dec-01 8:23
Johnny_8910-Dec-01 8:23 
QuestionCMenu::CheckMenuItem(...)??? Pin
Rickard Andersson2010-Dec-01 7:38
Rickard Andersson2010-Dec-01 7:38 
AnswerRe: CMenu::CheckMenuItem(...)??? Pin
Christian Graus10-Dec-01 11:12
protectorChristian Graus10-Dec-01 11:12 
AnswerRe: CMenu::CheckMenuItem(...)??? Pin
Ravi Bhavnani11-Dec-01 5:18
professionalRavi Bhavnani11-Dec-01 5:18 
Generalchar* byte* DLL-VC++ and Delphi Please help ! Pin
mimi10-Dec-01 7:36
mimi10-Dec-01 7:36 
GeneralCreate a CBitmap object, draw in it, save in (.bmp file) Pin
Remi Morin10-Dec-01 7:34
Remi Morin10-Dec-01 7:34 
GeneralRe: Create a CBitmap object, draw in it, save in (.bmp file) Pin
Bill Wilson10-Dec-01 7:42
Bill Wilson10-Dec-01 7:42 
QuestionHow to insert characters in a CRichEditViewed application? Pin
davilism10-Dec-01 7:33
davilism10-Dec-01 7:33 
QuestionHow to move the caret in CRichEditViewed application? Pin
davilism10-Dec-01 7:32
davilism10-Dec-01 7:32 
AnswerRe: How to move the caret in CRichEditViewed application? Pin
squizz10-Dec-01 10:05
squizz10-Dec-01 10:05 
GeneralRe: How to move the caret in CRichEditViewed application? Pin
davilism10-Dec-01 17:19
davilism10-Dec-01 17:19 

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.