Click here to Skip to main content
15,914,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: buttons Pin
BlackSmith18-Sep-02 23:43
BlackSmith18-Sep-02 23:43 
GeneralInstalling VS.Net alongside VC++ 6.0 Pin
unregistered18-Sep-02 13:15
unregistered18-Sep-02 13:15 
GeneralRe: Installing VS.Net alongside VC++ 6.0 Pin
Paul Ingles18-Sep-02 13:18
Paul Ingles18-Sep-02 13:18 
GeneralRe: Installing VS.Net alongside VC++ 6.0 Pin
adamUK18-Sep-02 21:31
adamUK18-Sep-02 21:31 
GeneralPointer to class memeber func Pin
BlackSmith18-Sep-02 12:20
BlackSmith18-Sep-02 12:20 
GeneralRe: Pointer to class memeber func Pin
Chris Losinger18-Sep-02 12:27
professionalChris Losinger18-Sep-02 12:27 
GeneralRe: Pointer to class memeber func Pin
Axter19-Sep-02 3:07
professionalAxter19-Sep-02 3:07 
GeneralRe: Pointer to class memeber func Pin
Axter18-Sep-02 18:07
professionalAxter18-Sep-02 18:07 
(m_Obj.*m_Func)()

Try the following:
MyClass()
{
m_pMethod = voidMethod; //OK
(*m_pMethod)();
}

To use function pointers you have to use some funcky looking syntax.
If you're calling the function from inside your class, just prefix the pointer with an asterick, and wrap perantesise around it:
(*MyFunPtr_Array)();

If you're doing it out side of the class, you would use the following syntax:
(MyClassVar.*m_Func)();

GeneralRe: Pointer to class memeber func Pin
BlackSmith19-Sep-02 2:59
BlackSmith19-Sep-02 2:59 
GeneralRe: Pointer to class memeber func Pin
Axter19-Sep-02 3:02
professionalAxter19-Sep-02 3:02 
GeneralRe: Pointer to class memeber func Pin
BlackSmith19-Sep-02 6:09
BlackSmith19-Sep-02 6:09 
Generali want some lesson for dynamic declaration Pin
CHEICKNA TRAORE18-Sep-02 12:11
CHEICKNA TRAORE18-Sep-02 12:11 
GeneralRe: i want some lesson for dynamic declaration Pin
Chris Losinger18-Sep-02 12:14
professionalChris Losinger18-Sep-02 12:14 
GeneralIcons with shortcut layers Pin
CaesarCZ18-Sep-02 11:55
CaesarCZ18-Sep-02 11:55 
GeneralRe: Icons with shortcut layers Pin
Michael Dunn18-Sep-02 12:00
sitebuilderMichael Dunn18-Sep-02 12:00 
GeneralUnicode to Arabic 1256 Pin
Hadi Rezaee18-Sep-02 11:43
Hadi Rezaee18-Sep-02 11:43 
GeneralCRT .dll's for Winsock Pin
Aaron Schaefer18-Sep-02 11:13
Aaron Schaefer18-Sep-02 11:13 
GeneralPassing strings from VC to a VB COM dll Pin
ns18-Sep-02 11:11
ns18-Sep-02 11:11 
GeneralRe: Passing strings from VC to a VB COM dll Pin
ns18-Sep-02 11:28
ns18-Sep-02 11:28 
GeneralRe: Passing strings from VC to a VB COM dll Pin
ns18-Sep-02 11:35
ns18-Sep-02 11:35 
GeneralRe: Passing strings from VC to a VB COM dll Pin
Bart Robeyns18-Sep-02 12:12
Bart Robeyns18-Sep-02 12:12 
GeneralRe: Passing strings from VC to a VB COM dll Pin
ns_18-Sep-02 13:50
sussns_18-Sep-02 13:50 
GeneralRe: Passing strings from VC to a VB COM dll Pin
Anonymous18-Sep-02 21:08
Anonymous18-Sep-02 21:08 
GeneralRe: Passing strings from VC to a VB COM dll Pin
ns19-Sep-02 1:19
ns19-Sep-02 1:19 
GeneralRe: Passing strings from VC to a VB COM dll Pin
Bart Robeyns19-Sep-02 11:21
Bart Robeyns19-Sep-02 11:21 

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.