FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Windows Toast notifications - second try
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Mon Apr 25, 2016 10:53 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 09:05 AM
I just tried to compile DesktopToastsSample.cpp. The first warning I get is

Code (fw): Select all Collapse
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 09:12 AM

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'

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 09:14 AM

thats why I looked for an alternative way that fortunately has worked

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 09:15 AM

Ok, but the problem is not in the Borland compiler.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 09:20 AM

Its header files are not Windows 10 and VSC2015 compatible

The compiler works fine.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 10:30 AM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 10:40 AM

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'

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 10:42 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 10:48 AM
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Windows Toast notifications - second try
Posted: Tue Apr 26, 2016 10:49 AM
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
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Windows Toast notifications - second try
Posted: Fri Apr 29, 2016 01:52 PM

Embarcadero has new version BCC 7.2. Maybe the required headers are included?

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion