[Del]....................................

本帖最後由 luckiejacky 於 2019-6-1 01:51 編輯

[Del]....................................

原帖由 luckiejacky 於 2008-11-13 15:19 發表
I am coding some sort of thing like this
int rx = this.x;

it results in a compile error...
it is caused by the "this" pointer.
I am using VC++ 6.0, i must use it because my program is a plugin and
c ...


"this" is a pointer, which is not an object.

do you mean

int rx = this->x;

or

int rx = (*this).x;

TOP

本帖最後由 luckiejacky 於 2019-6-1 01:51 編輯

[Del]....................................

TOP

本帖最後由 luckiejacky 於 2019-6-1 01:51 編輯

[Del]....................................

TOP