Page 6 of 6
Re: Windows Toast notifications - second try
Posted:
Mon Apr 25, 2016 10:53 pm
by Antonio Linares
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 9:05 am
by Enrico Maria Giordano
I just tried to compile DesktopToastsSample.cpp. The first warning I get is
- Code: Select all Expand view
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
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 9:12 am
by Antonio Linares
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'
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 9:14 am
by Antonio Linares
thats why I looked for an alternative way that fortunately has worked
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 9:15 am
by Enrico Maria Giordano
Ok, but the problem is not in the Borland compiler.
EMG
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 9:20 am
by Antonio Linares
Its header files are not Windows 10 and VSC2015 compatible
The compiler works fine.
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 10:30 am
by Enrico Maria Giordano
Antonio Linares wrote:Its header files are not Windows 10 and VSC2015 compatible
The compiler works fine.
I don't know if Borland headers are compatible with W10 but surely the provided stdafx.h isn't compatible with Borland.
EMG
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 10:40 am
by Antonio Linares
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'
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 10:42 am
by Antonio Linares
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
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 10:48 am
by Enrico Maria Giordano
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'
Can you send me the fixed stdafx.h, please?
EMG
Re: Windows Toast notifications - second try
Posted:
Tue Apr 26, 2016 10:49 am
by Enrico Maria Giordano
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
I'm going to ask Andi for a new Borland release.
EMG
Re: Windows Toast notifications - second try
Posted:
Fri Apr 29, 2016 1:52 pm
by byte-one
Embarcadero has new version BCC 7.2. Maybe the required headers are included?