www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D1: Windows DWORD conversion in D

reply "jicman" <jicman cinops.xerox.com> writes:
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é
Sep 07 2014
parent reply "Kagamin" <spam here.lot> writes:
cast(DWORD)v
Sep 08 2014
parent reply "jicman" <jicman cinops.xerox.com> writes:
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é
Sep 08 2014
parent "Temtaime" <temtaime gmail.com> writes:
DWORD is an uint.
Sep 08 2014