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
Post a Comment