How to get the pointer of "this" ?

welkam wwwelkam at gmail.com
Mon May 25 21:45:39 UTC 2020


On Sunday, 24 May 2020 at 17:05:16 UTC, Vinod K Chandran wrote:
> cast(DWORD_PTR) this);

Where is DWORD_PTR defined? I cant find it in docs. If its an 
alias of long then you have to cast to a pointer like this
cast(long*) this;
you need to specify that you want to cast to a pointer of type T. 
In this case T is long.


More information about the Digitalmars-d-learn mailing list