Please help in making an ActiveX control of a class (no GUI needed)
Posted on 2004-04-06
I wanted to make a ActiveX control (no GUI support) which has all the methods defined in the class shown below including the operator== overloading and copy contructor. Later on I have to use these methods in a VBA.
I got 3-4 replies but either the hint provided didn't worked out or I got syntax errors after compiling in MS VS C++ 6.
I have allready spent 3 days on this problem but could not able to solve it. Please help me in solving it.
Please reply as quick as possible in details. I will be very thankful, if you could build the ActiveX control by taking my Test.cpp as an input and send the tar file of the complete project at the following address: email@example.com
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)