As weird as they get!
Hello,
Here's a good one!
Here is a function that is called from one of my handlers....
Please consider the following function:
====================================================
void UpdatingSimOutputs(HDC hdc,IO *io,struct CoilTAG Outputs[])
{
//COLORREF crfColor[2] = {RGB(100,100,100),RGB(200,200,200)};
int i,i_boolArrSize;
HBRUSH hBrush;
for(i=0; i < io->getBoolArrayOutSize(); i++) //io-> intellisence does not
work!
{
hBrush = CreateSolidBrush(crfColor[1]);
SelectObject(hdc,hBrush);
Ellipse(hdc,Outputs[i].CoilRectLeft, Outputs[i].CoilRectTop,
Outputs[i].CoilRectRight,Outputs[i].CoilRectBottom);
//other code.....
}
}
===================================================
Why is it the intellisence doesn't work if I remove the comment symbol "//"
from the following line:
//COLORREF crfColor[2] = {RGB(100,100,100),RGB(200,200,200)};
In other words if I try to do this "io->" The intellisence that is supposed
to show my methods of the IO class do not show. If I add the comment, they
show?
The program compiles without errors though... and also works.... But I find
it unsual behaviour! This would force me to declare my COLORREF array as
global..... :(
All appreciated!
--
regards
Robert