1

There's a function that's not working and I don't understand why, and DBX isn't helping. Below is what 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 the same result, right?

If you want more context, here's an explanation of the code:

  • GetFundBranchGroup() returns a short stored in CCFundExpenseObject. That's it.
  • s1 is a void*
4

0 回答 0