CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    [RESOLVED] Access level for message handlers

    Hi Guys,

    What access level (private, public, protected) should be given to the different message handlers in my application? I generally declare all the variables for the controls as private, but are there any guidelines for these things?

    No specific reason for asking all this, I just want to have consistency across my projects.

    Another question that I have is that I have a project out of which I want to create another branch or version. The new variation will have a few more dialogs and features. I will be working on both of them, and want that the changes made to the common code in one of the project be automatically made to other as well. Any tool to do this?

    Thanks.
    "I rather not play football than wear Nerrazzuri shirt" - Paolo Maldini
    FORZA MILAN!!!

  2. #2
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    Re: Access level for message handlers

    Can Visual SourceSafe do what I want?
    "I rather not play football than wear Nerrazzuri shirt" - Paolo Maldini
    FORZA MILAN!!!

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Access level for message handlers

    1) Always use the least exposure to accomplish your goals.

    2) SourceSafe handles branches. If you are using VS-2005, consider using TFS if you need better project control.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    Re: Access level for message handlers

    1) Ok, thanks .

    2) SVN did exactly what I wanted.
    "I rather not play football than wear Nerrazzuri shirt" - Paolo Maldini
    FORZA MILAN!!!

  5. #5
    Join Date
    Sep 2004
    Location
    New Delhi, India
    Posts
    640

    Re: Access level for message handlers

    Hmmmm, I can't rate. But, thanks a lot Sir!
    "I rather not play football than wear Nerrazzuri shirt" - Paolo Maldini
    FORZA MILAN!!!

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