Click here to Skip to main content
15,890,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How Do I Incorporate mySQL into my web CGI app made in C++ Pin
Christian Graus20-Sep-06 13:59
protectorChristian Graus20-Sep-06 13:59 
QuestionNetwork communication programming problem Pin
zouchao111219-Sep-06 14:22
zouchao111219-Sep-06 14:22 
QuestionCPP Calling Syntax of Member functions. Pin
Bram van Kampen19-Sep-06 13:55
Bram van Kampen19-Sep-06 13:55 
AnswerRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen19-Sep-06 15:35
Bram van Kampen19-Sep-06 15:35 
AnswerRe: CPP Calling Syntax of Member functions. Pin
Stephen Hewitt19-Sep-06 16:04
Stephen Hewitt19-Sep-06 16:04 
GeneralRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen24-Sep-06 14:25
Bram van Kampen24-Sep-06 14:25 
GeneralRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen29-Sep-06 17:01
Bram van Kampen29-Sep-06 17:01 
GeneralRe: CPP Calling Syntax of Member functions. Pin
Stephen Hewitt30-Sep-06 1:28
Stephen Hewitt30-Sep-06 1:28 
A pointer to an integer:
int *pInt;

To refer to the integer pointed to (the "pointee") in previous example:
*pInt

A pointer to a function which returns nothing and has no parameters:
void (*pFunc)();

To call through the pointer in previous example:
(*pFunc)();
Note that in this case the star is optional but leaving it out is not consistent with the use of pointers in all other contexts.

A pointer to a class of type CFoo:
CFoo *pFoo;

To call a member function through the pointer in the previous example:
pFoo->AFunctionInCFoo();

A pointer a member function of class CFoo that returns nothing and has no parameters:
void (CFoo::*pFunc)();

To call through the pointer in the previous example:
pFoo->*pFunc();

In all cases you use the * operator to turn a pointer into a pointee (the object it points to). Just like it makes no sense to multiply a pointer to an int by 2 but it makes perfect sense to multiply the integer pointed to by 2 so it is with the pointer to a member function: you don’t call the pointer you call what it points to (a function) and the * operator is how you move from a pointer to its pointee.

Steve

GeneralRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen3-Oct-06 15:09
Bram van Kampen3-Oct-06 15:09 
Questionhow to search through a database Pin
ivanris19-Sep-06 13:43
ivanris19-Sep-06 13:43 
AnswerRe: how to search through a database Pin
Christian Graus19-Sep-06 13:48
protectorChristian Graus19-Sep-06 13:48 
Questionproblem using VC++ DLL in VC# Pin
saania khan19-Sep-06 13:43
saania khan19-Sep-06 13:43 
AnswerRe: problem using VC++ DLL in VC# Pin
Christian Graus19-Sep-06 13:44
protectorChristian Graus19-Sep-06 13:44 
GeneralRe: problem using VC++ DLL in VC# Pin
saania khan21-Sep-06 19:27
saania khan21-Sep-06 19:27 
GeneralRe: problem using VC++ DLL in VC# Pin
Christian Graus21-Sep-06 19:36
protectorChristian Graus21-Sep-06 19:36 
QuestionLPSTR question Pin
JBAK_CP19-Sep-06 12:23
JBAK_CP19-Sep-06 12:23 
AnswerRe: LPSTR question Pin
Chipperm19-Sep-06 12:29
Chipperm19-Sep-06 12:29 
GeneralRe: LPSTR question Pin
JBAK_CP19-Sep-06 12:47
JBAK_CP19-Sep-06 12:47 
QuestionOpening Network Connections dialog Pin
samaruf19-Sep-06 11:45
samaruf19-Sep-06 11:45 
AnswerRe: Opening Network Connections dialog Pin
Mohammad A Gdeisat19-Sep-06 12:28
Mohammad A Gdeisat19-Sep-06 12:28 
Questionrestricting CSplitterWnd pane to minimum size Pin
BlackDice19-Sep-06 11:43
BlackDice19-Sep-06 11:43 
AnswerRe: restricting CSplitterWnd pane to minimum size Pin
Christopher Duncan19-Sep-06 16:55
Christopher Duncan19-Sep-06 16:55 
QuestionFree opensource zip library Pin
Mohammad A Gdeisat19-Sep-06 10:18
Mohammad A Gdeisat19-Sep-06 10:18 
AnswerRe: Free opensource zip library Pin
Chris Losinger19-Sep-06 11:29
professionalChris Losinger19-Sep-06 11:29 
AnswerRe: Free opensource zip library Pin
Mohammad A Gdeisat19-Sep-06 11:57
Mohammad A Gdeisat19-Sep-06 11:57 

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.