Thread overview
D1: Windows DWORD conversion in D
Sep 08, 2014
jicman
Sep 08, 2014
Kagamin
Sep 08, 2014
jicman
Sep 08, 2014
Temtaime
September 08, 2014
Greetings.

I have a type long variable, ie.

long v = 1024;

and I have to pass it to a Window's function and it's not working.  I found out that I have to pass a DWORD to the function, and I know that dchar is somewhat close to DWORD, so, how do I pass this to this Windows function?

Anyone knows? Thanks.

josé

September 08, 2014
cast(DWORD)v
September 08, 2014
On Monday, 8 September 2014 at 07:08:25 UTC, Kagamin wrote:
> cast(DWORD)v

Darn it!  That is so easy.  I am convinced that D is the best language ever.

thanks,

josé
September 08, 2014
DWORD is an uint.