can i convert a class?
can i do macros\class for convert these class:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
class Button1 : public Button
{
public:
Button1()
{
onClick();
}
void onClick()
{
MessageBox(a,"Yay! An Event!","hi",MB_OK);
}
}Button1;
|
to:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
classwithevents<Button> Button1
{
public:
Button1()
{
onClick();
}
void onClick()
{
MessageBox(a,"Yay! An Event!","hi",MB_OK);
}
};
|
can anyone advice me?
There's nothing wrong with your code, I'm just wondering what you mean by "macros\class" to convert the classes? :/
Perhaps a little more detailed explanation would help. :)
see that 2 class's. imagine convert the 1st class to the 2nd. can i do these with another class?
Topic archived. No new replies allowed.