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

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -