I wanted to make a ActiveX control which has all the methods similar to the methods defined in the class shown below including the operator== overloading and copy contructor. Actually, later on I need all these methods in a VBA.
Please guide me how I should proceed to do the same?
Please reply as quick as possible, if you can.
Thanks in advance,
using namespace std;
unsigned int total;
Test(const Test& testObj);
void addValue(unsigned int value);
unsigned int getValue();
bool operator== (const Test& testObj);
total = 0;
Test::Test(const Test& testObj)
this->total = testObj.total;
void Test::addValue(unsigned int value)
total = total + value;
unsigned int Test::getValue()
bool Test::operator==(const Test& testObj)
if (this->total == testObj.total)