Source Code Project Mantis - FSSCP
View Issue Details
0001488FSSCP---------public2007-09-02 16:342008-02-08 07:32
ReporterKeldorKatarn 
Assigned ToBackslash 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.6.9 
Target VersionFixed in Version3.6.10 
Summary0001488: swff_lib.cpp doesn't compile using newest Windows SDK and disregarding old SDK files.
DescriptionVisual Studio 2005 complains about non-constant case expressions in this file in the lines 2464-2469 and 2472-2476.
I am not using the include paths of the SDK that comes with VS 2005 but instead use the newest windows SDK. I suspect several HRESULT checks made in those expressions are probably deprecated and the lines should therefore be removed. Commenting out those lines seems to make the project compile without problems.

(This file seems to be generally very old and partly deprecated)
Additional InformationHere are the problematic lines in code:

case VFX_ERR_FILE_NOT_FOUND: strcpy(pszCodeString, "VFX_ERR_FILE_NOT_FOUND" ); break;
case VFX_ERR_FILE_CANNOT_OPEN: strcpy(pszCodeString, "VFX_ERR_FILE_CANNOT_OPEN" ); break;
case VFX_ERR_FILE_CANNOT_CLOSE: strcpy(pszCodeString, "VFX_ERR_FILE_CANNOT_CLOSE" ); break;
case VFX_ERR_FILE_CANNOT_READ: strcpy(pszCodeString, "VFX_ERR_FILE_CANNOT_READ" ); break;
case VFX_ERR_FILE_CANNOT_WRITE: strcpy(pszCodeString, "VFX_ERR_FILE_CANNOT_WRITE" ); break;
case VFX_ERR_FILE_CANNOT_SEEK: strcpy(pszCodeString, "VFX_ERR_FILE_CANNOT_SEEK" ); break;
case VFX_ERR_FILE_ACCESS_DENIED: strcpy(pszCodeString, "VFX_ERR_FILE_ACCESS_DENIED" ); break;
case VFX_ERR_FILE_SHARING_VIOLATION: strcpy(pszCodeString, "VFX_ERR_FILE_SHARING_VIOLATION" ); break;
case VFX_ERR_FILE_NETWORK_ERROR: strcpy(pszCodeString, "VFX_ERR_FILE_NETWORK_ERROR" ); break;
case VFX_ERR_FILE_TOO_MANY_OPEN_FILES: strcpy(pszCodeString, "VFX_ERR_FILE_TOO_MANY_OPEN_FILES" ); break;
case VFX_ERR_FILE_INVALID: strcpy(pszCodeString, "VFX_ERR_FILE_INVALID" ); break;
TagsNo tags attached.
Attached Filestxt swff_lib_cpp_fix_diff.txt (3,200) 2008-01-09 08:21
http://scp.indiegames.us/mantis/file_download.php?file_id=972&type=bug

Notes
(0008483)
ni1s   
2007-09-04 11:54   
Isn't Force Feedback broken anyway?
(0008782)
KeldorKatarn   
2008-01-05 18:46   
Bump
(0008801)
KeldorKatarn   
2008-01-09 08:21   
Quick-fix attacked as diff file.
(0008851)
Backslash   
2008-02-08 07:32   
Fixed.
(Force feedback works on mine at least...)

Issue History
2007-09-02 16:34KeldorKatarnNew Issue
2007-09-04 11:54ni1sNote Added: 0008483
2008-01-05 18:46KeldorKatarnNote Added: 0008782
2008-01-09 08:21KeldorKatarnFile Added: swff_lib_cpp_fix_diff.txt
2008-01-09 08:21KeldorKatarnNote Added: 0008801
2008-02-08 07:32BackslashStatusnew => resolved
2008-02-08 07:32BackslashFixed in Version => 3.6.10
2008-02-08 07:32BackslashResolutionopen => fixed
2008-02-08 07:32BackslashAssigned To => Backslash
2008-02-08 07:32BackslashNote Added: 0008851