Okay, this is pretty simple but for some reason is escaping me today. I have a class which wraps some non-class library functions, and I want a couple of the methods (say "send()" and "receive()") to wrap library functions with the same names but different prototypes. How do I tell the compiler that these library functions are NOT supposed to be overloaded instances of the methods?
// "send(...)" is a library function, not part of any class. Its prototype is
// int send( HANDLE handle, char* buffer, size_t length );
class cMyThing
{
private:
HANDLE handle;
public:
publicint send( char* buffer, size_t length ); // this one is a method
};
...
// method implementation
int cMyThing::send( char* buffer, size_t length )
{
return send( this->handle, buffer, length ); // COMPILE ERROR
}
I just thought of something... is this where I would prefix the function name inside the method with "::" without a class name?