Hi,
this way should work like you want:
You must make the right typedef for your type/types of functions!!
typedef int (__stdcall *P_Interface)(void);
int Function_doa(void)
{
return 1;
}
int Function_dob(void)
{
return 2;
}
int Function_doc(void)
{
return 3;
}
int Function_dod(void)
{
return 4;
}
FARPROC table[]=
{
Function_doa,
Function_dob,
Function_doc,
Function_dod
};
int Test(void)
{
(P_Interface)table[1](); //executes Function_dob
return 0;
};
Greetings
Seltsamuel