Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


HeExists

Member Since 15 May 2011
Offline Last Active Dec 22 2014 10:10 PM

Posts I've Made

In Topic: Return value

01 December 2014 - 05:45 PM

Thank you for the reply. I will try this :).


In Topic: Return value

30 November 2014 - 05:14 PM

Thank you for the reply.


In Topic: Return value

30 November 2014 - 02:00 PM

Can I do like this -

COne* CScene::getOneFromId(int id)
{
   for(auto &it: m_OneContainer)
   {
      if(it.getID() == id)
      {
         COne* one = ⁢
         return one;
      }
   }
   return 0;
}

Thank you.


In Topic: Return value

30 November 2014 - 12:28 PM

I want it to return NULL when it can't find anything. I am trying to avoid using "new" wherever possible. I will stick with my first method for now.

 

Thank you for the reply.


In Topic: Layer and Frame?

16 June 2014 - 07:30 AM

I have already implemented this and it is working as expected :)

 

Thanks for the reply.


PARTNERS