Original Post
Hi,
I have some classes whose objects need to be tracked with id''s. Now I don''t want to program an id handler for every class. As it''s always the same, it only complicates the code.
I want my class to look like this:
How can I use this class for other classes, too?
Thank you,
Alex
class idhandler
{
protected:
int lastbuttonid;
public:
idhandler();
HRESULT addobject(button newbutton);
HRESULT deleteobject(button delbutton);
HRESULT insertobject(button insbutton, int newid);
};