Warning W8094 stdafx.h 7: Incorrect use of #pragma comment( <type> [,"string"] )So it seems that the provided stdafx.h is not the right one for Borland.
EMG
Warning W8094 stdafx.h 7: Incorrect use of #pragma comment( <type> [,"string"] )There are more...
c:\temp>c:\bcc7\bin\bcc32 -c DesktopToastsSample.cpp
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
DesktopToastsSample.cpp:
Warning W8094 stdafx.h 7: Incorrect use of #pragma comment( <type> [,"string"] )
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 144: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 145: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 203: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 206: ) expected
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 363: Redefinition of 'StrNCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 439: Redefinition of 'StrCatN' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 449: Redefinition of 'StrCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 452: Redefinition of 'StrCpy' is not identical
Error E2209 stdafx.h 23: Unable to open include file 'roapi.h'
Error E2209 stdafx.h 24: Unable to open include file 'wrl\client.h'
Error E2209 stdafx.h 25: Unable to open include file 'wrl\implements.h'
Error E2209 stdafx.h 26: Unable to open include file 'windows.ui.notifications.h'
thats why I looked for an alternative way that fortunately has worked
Ok, but the problem is not in the Borland compiler.
EMG
Its header files are not Windows 10 and VSC2015 compatible
The compiler works fine.
Antonio Linares wrote:Its header files are not Windows 10 and VSC2015 compatible
The compiler works fine.
Enrico,
After fixing stdafx.h I still get this, so it is not a problem with stdafx.h only:
c:\temp>c:\bcc7\bin\bcc32 -c DesktopToastsSample.cpp
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
DesktopToastsSample.cpp:
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 144: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 145: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 203: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 206: ) expected
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 363: Redefinition of 'StrNCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 439: Redefinition of 'StrCatN' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 449: Redefinition of 'StrCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 452: Redefinition of 'StrCpy' is not identical
Error E2209 stdafx.h 23: Unable to open include file 'roapi.h'
Error E2209 stdafx.h 24: Unable to open include file 'wrl\client.h'
Error E2209 stdafx.h 25: Unable to open include file 'wrl\implements.h'
Error E2209 stdafx.h 26: Unable to open include file 'windows.ui.notifications.h'
Actually, if we want to have fully compatibility with Windows 10 then VSC2015 is the way to go
I don't know if Embarcadero will solve that in future versions
Antonio Linares wrote:Enrico,
After fixing stdafx.h I still get this, so it is not a problem with stdafx.h only:
c:\temp>c:\bcc7\bin\bcc32 -c DesktopToastsSample.cpp
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
DesktopToastsSample.cpp:
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 144: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 145: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 203: ) expected
Error E2293 c:\bcc7\include\windows\sdk\shlwapi.h 206: ) expected
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 363: Redefinition of 'StrNCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 428: Redefinition of 'StrCatA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 431: Redefinition of 'StrCpyA' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 439: Redefinition of 'StrCatN' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 449: Redefinition of 'StrCat' is not identical
Warning W8017 c:\bcc7\include\windows\sdk\shlwapi.h 452: Redefinition of 'StrCpy' is not identical
Error E2209 stdafx.h 23: Unable to open include file 'roapi.h'
Error E2209 stdafx.h 24: Unable to open include file 'wrl\client.h'
Error E2209 stdafx.h 25: Unable to open include file 'wrl\implements.h'
Error E2209 stdafx.h 26: Unable to open include file 'windows.ui.notifications.h'
Antonio Linares wrote:Actually, if we want to have fully compatibility with Windows 10 then VSC2015 is the way to go
I don't know if Embarcadero will solve that in future versions
Embarcadero has new version BCC 7.2. Maybe the required headers are included?