Hi,
I lately open up a C++ project (Visual C++ project) which was converted from Java a few years ago.
This converted snippet has something called the object Object which is not compilable on VC++
Any ideas I can change this class to C++ compatible? Basically, it is checking the identity of the objects.
Any pointers? I don't think I can replace object or object* with void*, what functions are available in place of these functions? don't know how to call it.
Definitely it's not nice. But I need the source code to do my other projects.
Thanks
Jack
I lately open up a C++ project (Visual C++ project) which was converted from Java a few years ago.
This converted snippet has something called the object Object which is not compilable on VC++
Any ideas I can change this class to C++ compatible? Basically, it is checking the identity of the objects.
Any pointers? I don't think I can replace object or object* with void*, what functions are available in place of these functions? don't know how to call it.
Code:
class Point
{
public:
const int x;
const int z;
Point(int x, int z);
virtual bool Equals(object *o);
virtual bool Equals(Point *other);
virtual std::string ToString();
};Thanks
Jack