www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Win32 api with 2.061

reply "cal" <callumenator gmail.com> writes:
I am trying to compile a project using the Win32 api header's 
(the Dsource ones) with 2.061 and am getting errors for the first 
time with things like this:

const uint WINVER = blah
Error: variable WINVER cannot be read at compile time.

I just want to confirm if this is due to a change in the 
compiler? I didn't see this error with earlier releases.

Cheers,
cal
Jan 22 2013
next sibling parent David <d dav1d.de> writes:
Am 22.01.2013 23:25, schrieb cal:
 const uint WINVER = blah
try: static const uint WINVER = blah But I have no idea why it changed
Jan 22 2013
prev sibling parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 1/22/13, cal <callumenator gmail.com> wrote:
 I am trying to compile a project using the Win32 api header's
 (the Dsource ones) with 2.061 and am getting errors for the first
 time with things like this:
Try making these changes: https://github.com/AndrejMitrovic/WindowsAPI/commit/6d8ef98508063c5a4741c72eda68aa485d3b25fa WindowsAPI should really be moved to Github..
Jan 22 2013
parent "cal" <callumenator gmail.com> writes:
On Wednesday, 23 January 2013 at 02:40:55 UTC, Andrej Mitrovic 
wrote:
 Try making these changes:
 https://github.com/AndrejMitrovic/WindowsAPI/commit/6d8ef98508063c5a4741c72eda68aa485d3b25fa

 WindowsAPI should really be moved to Github..
Thanks this fixed another error i was getting, compiler is happy again. A github WinApi would be great, I use it a lot.
Jan 23 2013