www.digitalmars.com         C & C++   DMDScript  

c++ - Wrong prototype for InterlockedCompareExchange

reply David Qualls <firstnameLlastname yahoo.com> writes:
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
Oct 15 2009
parent Walter Bright <newshound1 digitalmars.com> writes:
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.
Oct 18 2009