I seem to be unable to resolve this! Could someone help me please!
The error is:
error C2665: 'ButtonAdd' : none of the 2 overloads could convert all the argument types
The code is:
//Already initialised cn1, SP_Button, and OnMenu(int id, int evt)
cn1 = ContainerAdd(0, 0, 0); //ContainerAdd(cn, x ,y)
MenuView[0] = ViewAdd(cn1,"Images/Menu1.png", 0,0);
SP_Button = ButtonAdd(cn1, "Images/Single_Player.png" ,60 ,260, OnMenu1, 1);
int ButtonAdd(int cn,char *filename, int x, int y, int (*callback)(int id), int id);
I'm trying to figure out whats wrong, but cant seem to identify the problem!
Thank you in advance,
Micboy
PS, the full error is:
error C2665: 'ButtonAdd' : none of the 2 overloads could convert all the argument types
1> dfsdk\dragonfiresdk\lights\dragonfiresdk.h(244): could be 'int ButtonAdd(int,char *,int,int,int (__cdecl *)(int),int)'
1> while trying to match the argument list '(int, const char [20], int, int, overloaded-function, int)'