Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

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 ?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: #ifdef PLATFORM_POSIX #include <bits/atomicity.h> for POSIX ?
Next Topic: Compatibility change
Goto Forum:
  


Current Time: Mon Aug 25 11:48:11 CEST 2025

Total time taken to generate the page: 0.06351 seconds