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 » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » Weird problem
Re: Weird problem [message #35182 is a reply to message #35180] Thu, 19 January 2012 22:44 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Massimo

I have tried this and compiles well with MSC9.

Could you simplify more the testcase?

struct Pru {
	Color color;
	String name;
};

void MyClass::Paint(Draw& w) {
	Rect r, cRect, tRect;
	Pru ld;
	int yTop = 0;
	int yBottom = 0;
	
	w.DrawRect(cRect, ld.color);
	w.DrawLine(r.left + 48, yTop   , r.left + 68, yTop   , 0, Black);
	w.DrawLine(r.left + 68, yTop   , r.left + 68, yBottom, 0, Black);
	w.DrawLine(r.left + 68, yBottom, r.left + 48, yBottom, 0, Black);
	w.DrawLine(r.left + 48, yBottom, r.left + 48, yTop   , 0, Black);
	w.DrawText(tRect.left, tRect.top, ld.name);


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creation of a static .lib with MSC in U++
Next Topic: diff/patch for Strings
Goto Forum:
  


Current Time: Fri Apr 19 00:28:42 CEST 2024

Total time taken to generate the page: 0.03808 seconds