say i have the following wrapper class
Class CHandle
{
public:
..
..
private:
HANDLE m_h;
};
how would i make an overloaded operator that will return the address of m_h member so that i can mimic the following api function
HANDLE h;
ReadFile(&h);
so that mine can be used like so..
CHandle h;
ReadFile(&h);
Also to inherit from HANDLE
1 2 3 4 5 6
|
class CHandle : HANDLE
{};
//...
ReadFile(&myCHandle);
|
Last edited on