Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A c++ question Pin
Chris Losinger31-Jan-03 19:02
professionalChris Losinger31-Jan-03 19:02 
GeneralWiring in a couple of Radio Controls Pin
jimNLX31-Jan-03 16:05
jimNLX31-Jan-03 16:05 
GeneralRe: Wiring in a couple of Radio Controls Pin
Michael Dunn31-Jan-03 16:20
sitebuilderMichael Dunn31-Jan-03 16:20 
Generalupdate edit box Pin
dmbrubac31-Jan-03 13:36
professionaldmbrubac31-Jan-03 13:36 
GeneralRe: update edit box Pin
Michael Dunn31-Jan-03 14:45
sitebuilderMichael Dunn31-Jan-03 14:45 
GeneralWinInet - order of asynchronious messages Pin
_danny_31-Jan-03 11:07
suss_danny_31-Jan-03 11:07 
GeneralDrawing transparent bitmap in a dialogbar Pin
MemLeak31-Jan-03 10:35
MemLeak31-Jan-03 10:35 
GeneralFunction Pointer Pin
act_x31-Jan-03 9:23
act_x31-Jan-03 9:23 
I have some void functions in my class
void B1(void);<br />
 void B2(void) ; 
for which I type defined the following
typedef void EMPTYFUNC(void);
In a Thread Function I need to call these functions based on the value of a variable

UINT ThreadFunc(LPVOID p)<br />
{<br />
   MyClass *thisPtr = (MyClass *)p;<br />
   EMPTYFUNC *fPtr;<br />
   switch(thisPtr->whichFunction)<br />
   {<br />
    case FIRST_FUNC : fPtr=thisPtr->B1;break;<br />
    case ..<br />
<br />
   }

I am getting an error at fPtr=thisPtr->B1

What am I doing Wrong ?
How should i call the function ?
Thanks
GeneralRe: Function Pointer Pin
Joaquín M López Muñoz31-Jan-03 9:49
Joaquín M López Muñoz31-Jan-03 9:49 
GeneralRe: Function Pointer Pin
Erik Funkenbusch31-Jan-03 10:40
Erik Funkenbusch31-Jan-03 10:40 
Generalmfc - .net - casting data types Pin
mmilano31-Jan-03 9:14
mmilano31-Jan-03 9:14 
GeneralRe: mfc - .net - casting data types Pin
Joaquín M López Muñoz31-Jan-03 9:59
Joaquín M López Muñoz31-Jan-03 9:59 
GeneralRun Override Pin
Dov Sherman31-Jan-03 8:49
Dov Sherman31-Jan-03 8:49 
GeneralRe: Run Override Pin
Joaquín M López Muñoz31-Jan-03 10:06
Joaquín M López Muñoz31-Jan-03 10:06 
GeneralRe: Run Override Pin
Neville Franks31-Jan-03 10:11
Neville Franks31-Jan-03 10:11 
GeneralRe: Run Override Pin
Dov Sherman31-Jan-03 15:38
Dov Sherman31-Jan-03 15:38 
GeneralRe: Run Override Pin
Neville Franks1-Feb-03 11:09
Neville Franks1-Feb-03 11:09 
GeneralBinding GDIPLUS.DLL to EXE file ! Pin
Alex H 198331-Jan-03 8:52
Alex H 198331-Jan-03 8:52 
QuestionCMonthCalendar : how to use it ? Pin
youssef31-Jan-03 8:50
youssef31-Jan-03 8:50 
Generalicon with mousemove notification Pin
m_strdewanata31-Jan-03 7:29
m_strdewanata31-Jan-03 7:29 
GeneralMFC VC++6.0 ClistCtrl with editboxes Pin
hpark31-Jan-03 6:15
hpark31-Jan-03 6:15 
GeneralRe: MFC VC++6.0 ClistCtrl with editboxes Pin
Michael P Butler1-Feb-03 0:20
Michael P Butler1-Feb-03 0:20 
GeneralLinker bug in Visual Studio .net Pin
valtrig31-Jan-03 5:58
valtrig31-Jan-03 5:58 
Questioneof error? Pin
will138331-Jan-03 5:28
will138331-Jan-03 5:28 
AnswerRe: eof error? Pin
valikac31-Jan-03 5:41
valikac31-Jan-03 5:41 

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.