Hi,
trying to compile under builder 5 I am getting the follwing errors:
[C++ Error] Win32PlatformUtils.cpp(621): E2034 Cannot convert 'void * *'
to 'long *'
[C++ Error] Win32PlatformUtils.cpp(621): E2342 Type mismatch in
parameter 'Destination' (wanted 'long *', got 'void * *')
[C++ Error] Win32PlatformUtils.cpp(621): E2034 Cannot convert 'void *'
to 'long'
[C++ Error] Win32PlatformUtils.cpp(621): E2342 Type mismatch in
parameter 'Exchange' (wanted 'long', got 'void *')
[C++ Error] Win32PlatformUtils.cpp(621): E2034 Cannot convert 'void *'
to 'long'
[C++ Error] Win32PlatformUtils.cpp(621): E2342 Type mismatch in
parameter 'Comperand' (wanted 'long', got 'void *')
[C++ Error] Win32PlatformUtils.cpp(621): E2034 Cannot convert 'long' to
'void *'
relating to c\src\util\Platforms\Win32\Win32PlatformUtils.cpp
//
---------------------------------------------------------------------------
// Miscellaneous synchronization methods
//
---------------------------------------------------------------------------
void*
XMLPlatformUtils::compareAndSwap( void** toFill
, const void* const newValue
, const void* const toCompare)
--cut out not relevant stuff
#else
//
// Note we have to cast off the constness of some of these because
// the system APIs are not C++ aware in all cases.
//
return ::InterlockedCompareExchange
(
toFill
, (void*)newValue
, (void*)toCompare
); ----line 621
#endif
}
have looked at the source and can not see how this would work!!
any help is greatly appreciated
--
Gareth Reakes, Software Engineer
XML Script/X-Studio Development Team Office: 44-1865-203192
http://www.xmlscript.org/ Mobile: 44-7797-503087