Home » U++ Library support » U++ Core » Array & Gdiplus::Pen problem
Re: Array & Gdiplus::Pen problem [message #10850 is a reply to message #10849] |
Wed, 01 August 2007 16:46   |
|
Tested more and:
When i comment out other method below
void MetaLayer::GetSimplePens(int type, Array<Pen> & pens) const
{
pens.SetCount(Globals::RoadCategories);
if (type == 0)
{
for (int i = 0; i < Globals::RoadCategories; i++)
{
pens.Set(i, new Pen(Color_(0,0,0), 3.));
pens[i].SetEndCap(Gdiplus::LineCapDiamondAnchor);
pens[i].SetStartCap(Gdiplus::LineCapDiamondAnchor);
}
}
else if (type == 1)
{
for (int i = 0; i < Globals::RoadCategories; i++)
{
pens.Set(i, new Pen(Color_(255,0,0), 1.));
pens[i].SetStartCap (Gdiplus::LineCapDiamondAnchor);
pens[i].SetEndCap (Gdiplus::LineCapDiamondAnchor);
}
}
else
for (int i = 0; i < Globals::RoadCategories; i++)
pens.Set(i, new Pen(Color_(0,0,0), 3));
}
I can compile code with earlier metohod
When i enable this metod the compiler fails at other metod below!!!!
void MetaLayer::GetPens(int type, Array<Pen> & pens) const
WHats wrong with Array ?
|
|
|
Goto Forum:
Current Time: Mon Aug 25 11:48:11 CEST 2025
Total time taken to generate the page: 0.06351 seconds
|