int kpSize = 4;
int kpIdx = 0;
typedef int (*EventHandler) (void *);
EventHandler *keyFuncArray = (EventHandler *) malloc(sizeof(EventHandler) * kpSize);
I get the following error on compiling, error C2099: initializer is not a constant on the following line
EventHandler *keyFuncArray = (EventHandler *) malloc(sizeof(EventHandler) * kpSize);