I am new to C++ and to VS.... here is a quick unmanaged class I set up, my
constructor just zero's out the array's. The wierd thing is that I can see
all elements of outbuf with the debugger but only the first element of
FadeInfo..... all other elem,ents show (effectivly) zeroed out.
I have code that sets stuff and acts upon different elements in the FadeInfo
array, it all works but I can't see it in the debugger,
Any ideas????
struct FadeStruct
{
bool Fading; // Is Now fading
int StartTick; // Start tick time (tickcount)
int NumTicks; // num msec to fade
U16 StartLevPos; // 16bit val for 2chan
U16 EndLevPos; // 16bit val for 2chan
bool LevUp; // true if pos fade - false if fade down
U16 LevChange; // throw of fade, as in End-Start
bool Is2Byte; // Do 2 wide
};
class ArtNetStuff
{
private:
U8 outbuf[513];
ArtNetDMXStruct ArtNetDMX;
FadeStruct FadeInfo[513];
public:
ArtNetStuff(void);
~ArtNetStuff(void);
void SetChan(short Chan, U8 Level);
unsigned char GetChanLev(short Chan);
void DoFadeLoop(void);
void SetChanFadeProps(short Chan, float Time, short TargLev, bool Is2Byte,
bool IsForward);
int SetUpStuff(void);
};