This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC could not convert __b to ... error


Hi Mubarak,

Make your definition:

typedef void (*PFParamHandler)(short wParamKey, long lDataSize);
typedef map<short, PFParamHandler> TParamHandlerTable;

And then your...
void LoadInfo(short,long);
...should be able to be put in your map.

--Eljay

PS:  you appear to be using some sort of Hungarian notation.  The 'w' prefix mean a 'word', which is the natural word size of your machine, represented by 'int' in C/C++.  Most modern machines have 32-bit words, some have 64-bit words, and a few specialized hardware systems (such as video GPUs) may have 128-bit or 256-bit words.  Are you running on 16-bit hardware?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]