I have the following typdef :
typedef void (CCommandes::*LPFSMFUNC)(WORD idx, struct ParamQueue *pParam);
and the following line of code :
size_t typelen = sizeof( LPFSMFUNC );
The value of typelen is always "16" ...
Why not 4 ?
I try that code on 2 different machines ...
I have also :
LPFSMFUNC TabFunc ( 64 );
In MS VC 6.0 debugger Watch windows I can see :
BOOL CGroupe::AddFunc (UINT key, LPFSMFUNC pfunc)
if ((TabFunc[key] != NULL) || (key>MAXNFUNC))
DWORD typelen = sizeof( LPFSMFUNC );
If key = 1 for example, in Watch window I can see:
- 0x004014ec CCommandes::GrpPrintShop_MPGetUser(WORD wThreadIdxParam, struct ParamQueue * pParam)
I know there is something wrong but I can't see what .
Thanks for helping me .