Click to See Complete Forum and Search --> : Operator Overloading


James Longstreet
April 26th, 1999, 08:47 AM
I was wondering if anyone could give a good example of operator overloading. What I am trying is to have a function to set the state of windows controls, and i want it to accept any type of common control. Thanks

Jim Hewitt, Liberty Tax Service

Michael Decker
April 26th, 1999, 01:21 PM
Do you want operator overloading or function overloading? If you want operator overloading, then which operator (+, -, =, etc.)?

Dave Lorde
April 28th, 1999, 05:24 AM
If you meant function overloading:

BOOL SetState(CListbox& cl);
BOOL SetState(CEdit& ce);
BOOL SetState(CButton& cb);
BOOL SetState(CToolbar& ct);

Dave