CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 0.21 seconds.

  1. Replies
    5
    Views
    2,102

    Re: Scope- Public v Protected (Private)

    Did you fix the error that I pointed out? You are creating a temporary object that gets destroyed as soon as that statement is completed. It is actually worse than a local object, as a local object...
  2. Replies
    5
    Views
    2,102

    Re: Scope- Public v Protected (Private)

    If you're saying that the program behaves differently when you move variables around, then I can bet that you're corrupting memory in some way.

    Anytime a "fix" is done by merely moving variables...
  3. Replies
    5
    Views
    2,102

    Re: Scope- Public v Protected (Private)

    First, please use code tags when posting code:


    class CTerrain : public CObject
    {
    public:
    CTerrain(HWND hWnd);
    ~CTerrain() {};
    void Draw(CDC* pDC);
    ...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured