[Solved] error C2275: ‘TOKEN’ : illegal use of this type as an expression

 

error C2275: ‘TOKEN’ : illegal use of this type as an expression

W_INT4 New_550_ROEWE_ThrottleSensor(TOKEN *pToken)
{
W_INT4 iRet = 1,iPromMode = 0;

iRet = InitMenuID(0x1a06004D);
AddMenuTextID(0x1a06005A);
AddMenuTextID(0x1a06005B);
W_INT2 iDefaultMenuItem = -1;

iRet = ShowMenuGetSelectedItem(iDefaultMenuItem,0,NULL);
iPromMode = iRet + 1;

switch(iPromMode)
{
case 1:
iRet = IP21MCE_NWE550_ECM1_Adaptive_Reset(TOKEN *pTokenpToken);
break;
case 2:
iRet = IP21MCE_NWE550_ECM2_Adaptive_Reset(TOKEN *pTokenpToken);
break;
}
return iRet;
}

Small problem, but the error is reported when the Internet check is the format of c99 to specify the problem, the definition is not at the beginning of the function, this is also wrong here. Record the problem.

Similar Posts: