CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Operator Overloading

    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

  2. #2
    Join Date
    Apr 1999
    Posts
    90

    Re: Operator Overloading

    Do you want operator overloading or function overloading? If you want operator overloading, then which operator (+, -, =, etc.)?


  3. #3
    Join Date
    Apr 1999
    Posts
    383

    Re: Operator Overloading

    If you meant function overloading:

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

    Dave


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured