Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   VC++ Control Array (http://www.go4expert.com/forums/vcpp-control-array-t27476/)

Emerogork 29Dec2011 05:46

VC++ Control Array
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

xpi0t0s 31Dec2011 04:49

Re: VC++ Control Array
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.

All times are GMT +5.5. The time now is 10:00.