October 15, 2009 Wrong prototype for InterlockedCompareExchange | ||||
---|---|---|---|---|
| ||||
Sorry, I know this belongs in the Windows32 forum, but looks like no one is monitoring that one. I just downloaded dmc 8.50 thinking maybe it had changed; no, hasn't changed. DM is still using (what appears to be) a 1996 version of winbase.h I tried just copying over a version of WinBase.h from my visual studio 2005, and as expected, lots more errors than I really want to try to clean up. I just changed the declaration for InterlockedCompareExchange in /dm/include/win32/winbase.h, and it SEEMS to work (maybe-- actually I've got another unrelated error so I can't test it yet). Any thought on cleaning up the declarations to be compatible with what the OS actually wants? David |
October 18, 2009 Re: Wrong prototype for InterlockedCompareExchange | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Qualls | David Qualls wrote:
> Sorry, I know this belongs in the Windows32 forum, but looks like
> no one is monitoring that one.
>
> I just downloaded dmc 8.50 thinking maybe it had changed; no,
> hasn't changed. DM is still using (what appears to be) a 1996
> version of winbase.h
>
> I tried just copying over a version of WinBase.h from my visual
> studio 2005, and as expected, lots more errors than I really want
> to try to clean up.
>
> I just changed the declaration for InterlockedCompareExchange
> in /dm/include/win32/winbase.h, and it SEEMS to work (maybe--
> actually I've got another unrelated error so I can't test it yet).
>
> Any thought on cleaning up the declarations to be compatible with
> what the OS actually wants?
Generally, newer windows .h files should work fine with only minor edits.
|
Copyright © 1999-2021 by the D Language Foundation