diff --git a/Image3dAPI/Image3dAPI.vcxproj b/Image3dAPI/Image3dAPI.vcxproj
index bba0bbf..c42dc1f 100644
--- a/Image3dAPI/Image3dAPI.vcxproj
+++ b/Image3dAPI/Image3dAPI.vcxproj
@@ -90,11 +90,11 @@
TlbImp.exe /machine:x86 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
-xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
-xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
+xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
+xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
-xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
-xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
+xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
+xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1
@@ -114,11 +114,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
TlbImp.exe /machine:x64 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
-xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
-xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
+xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
+xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
-xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
-xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
+xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
+xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1
@@ -142,11 +142,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
TlbImp.exe /machine:x86 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
-xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
-xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
+xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
+xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
-xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
-xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
+xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
+xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1
@@ -170,11 +170,11 @@ xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
TlbImp.exe /machine:x64 "$(OutDir)$(TargetName).tlb" /out:$(OutDir)$(TargetName).dll
:: Copy interface definitions to shared project dir
-xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)"
-xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)"
+xcopy /Y /D "$(IntDir)*.h" "$(ProjectDir)" || exit /b 1
+xcopy /Y /D "$(IntDir)*.c" "$(ProjectDir)" || exit /b 1
:: Copy type libraries to shared platform folder
-xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)"
-xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)"
+xcopy /Y /D "$(OutDir)$(TargetName).tlb" "$(SolutionDir)$(Platform)" || exit /b 1
+xcopy /Y /D "$(OutDir)$(TargetName).dll" "$(SolutionDir)$(Platform)" || exit /b 1