CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 23

Threaded View

  1. #20
    Join Date
    Apr 2006
    Posts
    220

    Re: static variables

    Is the guy'z problem sharing and accessing data between two different processes?

    I don't think so. He has declared and initialized two separate instances of his class and every instance will have its separate data.

    Scorpion! if you want to access A's instance in B, make some public method in B which accepts A's instance and pass it your declared instance.

    Correct me someone if I am wrong.
    Last edited by nabeelisnabeel; May 13th, 2009 at 01:36 AM. Reason: extra

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