Author Topic: Failed To Install  (Read 7029 times)

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Failed To Install
« Reply #15 on: May 03, 2012, 07:00:56 am »
Maybe something to do with itoa be deprecated?

The itoa() function isn't deprecated.  It's non-standard C, and as such isn't supported on every platform (including Mac/iOS).
Tim Sommers
DragonFireSDK Team

rjanes

  • Guest
Re: Failed To Install
« Reply #16 on: May 03, 2012, 10:50:36 am »
Just a head's up as well, if you get in to comparing strings and case sensitivity, avoid the use of strcasecmp() for those using VC++, as it's also  Non-Standard C , use the toupper or tolower functions.   You'll run into the same issue as using itoa() as well as a few other functions.


tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Failed To Install
« Reply #17 on: May 03, 2012, 12:20:57 pm »
Just a head's up as well, if you get in to comparing strings and case sensitivity, avoid the use of strcasecmp() for those using VC++, as it's also  Non-Standard C , use the toupper or tolower functions.   You'll run into the same issue as using itoa() as well as a few other functions.

The abs() function comes to mind.  If you're trying to get the absolute value of a double or a float, you need to use fabs() instead of abs() on iOS.  The Visual C++ library overloads abs() to handle any numeric type, but that's non-standard...

If you have any questions about what's standard C/C++ and what isn't, http://www.cplusplus.com/reference/ is an excellent resource...
Tim Sommers
DragonFireSDK Team

matthewsjc1

  • Guest
Re: Failed To Install
« Reply #18 on: May 03, 2012, 07:25:19 pm »
Quote
The itoa() function isn't deprecated.  It's non-standard C, and as such isn't supported on every platform (including Mac/iOS).

Microsoft docs plus the compiler both warn that it's deprecated and you should use a safer alternative.

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Failed To Install
« Reply #19 on: May 03, 2012, 07:56:59 pm »
Quote
The itoa() function isn't deprecated.  It's non-standard C, and as such isn't supported on every platform (including Mac/iOS).

Microsoft docs plus the compiler both warn that it's deprecated and you should use a safer alternative.

Fair enough.  If it's deprecated in Visual C++, so much the better.  It causes problems in DragonFireSDK. :)
Tim Sommers
DragonFireSDK Team

matthewsjc1

  • Guest
Re: Failed To Install
« Reply #20 on: May 05, 2012, 05:48:37 am »
Quote
http://www.cplusplus.com/reference/

So if it's there, it's supported by dragonfire?

matthewsjc1

  • Guest
Re: Failed To Install
« Reply #21 on: May 05, 2012, 05:52:49 am »
What about c++ classes? Are all parts of classes supported? (constructors, destructors, inheritance, etc?)

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Failed To Install
« Reply #22 on: May 05, 2012, 08:18:15 am »
Quote
http://www.cplusplus.com/reference/

So if it's there, it's supported by dragonfire?

Yep.

What about c++ classes? Are all parts of classes supported? (constructors, destructors, inheritance, etc?)

Yep.

Any standard C or C++ is supported.  What you cannot use is anything non-standard or Microsoft-specific.  You cannot use Windows DLL's or LIBs.
Tim Sommers
DragonFireSDK Team