I am getting the error

error C4716: 'ReStart' : must return a value

can anyone help?
thanks

int ReStart(int id);
PushButtonAdd("Transparent",90,300,ReStart,11);

Hey,

although your question is pretty vague, due to that you paste not nearly enough code,
I think the problem might be that your function definition of "ReStart" has a semi-colon after it, which it shouldnt. I'd say if your wrote "ReStart" to say this

int restart(int id)
{
   return id;
}

it would work. But what are you trying to do? I dont see how this would benefit you in
any way.

In short: When you define a function with a return type, (the first "int" in "int ReStart(int id)" ), you need a "return <int_number_here>;" command at the end of your function.

Hope that helped, -Harry

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.