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 » Community » Newbie corner » [SOLVED]Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me
Re: [SOLVED]Control property syntax (ArrayCtrl, Button), IDE syntax guide unclear to me [message #44312 is a reply to message #44308] Sat, 21 February 2015 21:24 Go to previous message
Klugier is currently offline  Klugier
Messages: 1076
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Edward,

I will change one thing in your code. You shouldn't use "using namespace Upp" in your header file (.h). Use "NAMESPACE_UPP" & "END_UPP_NAMESPACE" construction. In implementation file (.cpp) you can/should use "using namespace Upp" or "NAMESPACE_UPP" construction.

This is recommendation for all Upp projects.

P.S. 1
This construction is implemented in my previous post.

P.S. 2
Why you shouldn't use "using namespace" in header file - http://stackoverflow.com/questions/5849457/using-namespace-i n-c-headers.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sat, 21 February 2015 21:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Errors during compiling the examples
Next Topic: [SOLVED]Deleted layout controls still cause errors in compile. How? 8183 MinGW
Goto Forum:
  


Current Time: Thu May 09 12:42:50 CEST 2024

Total time taken to generate the page: 0.02447 seconds