VC++ Control Array

Emerogork's Avatar
Light Poster
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
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
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.