c++ - DBX Output Different When Using "." or "->" -


there's function that's not working , don't understand why, , dbx isn't helping. below i'm talking about.

(dbx 12) print ((ccfundexpenseobject *)s1)->getfundbranchgroup() ((class ccfundexpenseobject *) s1)->getfundbranchgroup() = -2019 (dbx 13) print (*((ccfundexpenseobject *)s1)).getfundbranchgroup() (*((class ccfundexpenseobject *) s1)).getfundbranchgroup() = 1 

logically, both lines should have same result, right?

if want more context, here's explanation of code:

  • getfundbranchgroup() returns short stored in ccfundexpenseobject. that's it.
  • s1 void*


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -