1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VC++ Control Array

Discussion in 'C++' started by Emerogork, Dec 29, 2011.

  1. Emerogork

    Emerogork New Member

    Joined:
    Jul 24, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Moving from VB to VC++. I am reconstructing VB code into VC++ Code. I struggle with the set up. I would like to create a Control array called PegArray which will control 15 buttons. (btn1, btn2, ...) I have it working locally but need to access it Globally. Different coed? Relocated code? Thoughts appreciated
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Best bet is to encapsulate PegArray into a single file. Then that file is dependent on all the graphics APIs, and it can export an internal API for the rest of the program to use, then everything won't be dependent on the graphics APIs and your program will be quicker to compile.
     

Share This Page