www.digitalmars.com         C & C++   DMDScript  

D - pb when import windows.d

reply sam <sam_member pathlink.com> writes:
When I import windows.d, the dmd compiler stop with the following error :

"cannot implicitly convert uint to int"

at the line 999 : const int MAXDWORD = (0xFFFFFFFF);

is there a problem with hexadecimals in D ?

Please help...
Jun 12 2003
parent "Fabian Giesen" <rygNO SPAMgmx.net> writes:
 When I import windows.d, the dmd compiler stop with the following
 error :

 "cannot implicitly convert uint to int"

 at the line 999 : const int MAXDWORD = (0xFFFFFFFF);

 is there a problem with hexadecimals in D ?

It's in the error message. The value you specify is outside of the range of a normal int - you either have to use uint (unsigned int) or specify it as -1 instead. -fg
Jun 13 2003