Click here to Skip to main content
15,886,362 members

Quick set a Byte Variable in a 3D struct

Revision 1
Hi,

I have a 3d structure that contains a Byte variable cCtrlVal.
I would like to set this at runtime to 255 as fast as possible.
Currently I am looping through the matrix with 3 nested for loops.

This there a better quicker way to quick set this var?
Thanks.

:Ron

C++
struct typControlMatrix
	{
	BOOL bEnabled; 
	BOOL bChanged;
	BOOL LastChange;	
	BOOL AdjStripNo;
        BYTE cCtrlVal; 
	enum enControlType eCtrlType;
	DWORD lCtrlNo;
	char sStripDesc[MAX_SCRIBBLE_STRIP_DESC]; 
	CString sCtrlVal;
	BOOL bDescChanged;
	int TrackPage; 
	int CompRatioIndex ;
	DWORD lStripNo;
	int lParamNo;
	} m_tControlMatrix[129][5][9];
Posted 21-Nov-12 16:33pm by Ron Anders.
Tags: