Thread overview |
---|
September 08, 2014 D1: Windows DWORD conversion in D | ||||
---|---|---|---|---|
| ||||
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 Re: D1: Windows DWORD conversion in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to jicman | cast(DWORD)v |
September 08, 2014 Re: D1: Windows DWORD conversion in D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | 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é
|
Copyright © 1999-2021 by the D Language Foundation