Windows Toast notifications - second try

Re: Windows Toast notifications - second try

Postby Antonio Linares » Mon Apr 25, 2016 10:53 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Enrico Maria Giordano » Tue Apr 26, 2016 9:05 am

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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Windows Toast notifications - second try

Postby Antonio Linares » Tue Apr 26, 2016 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Antonio Linares » Tue Apr 26, 2016 9:14 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Enrico Maria Giordano » Tue Apr 26, 2016 9:15 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Windows Toast notifications - second try

Postby Antonio Linares » Tue Apr 26, 2016 9:20 am

Its header files are not Windows 10 and VSC2015 compatible

The compiler works fine.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Windows Toast notifications - second try

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Windows Toast notifications - second try

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Windows Toast notifications - second try

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8315
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Windows Toast notifications - second try

Postby byte-one » Fri Apr 29, 2016 1:52 pm

Embarcadero has new version BCC 7.2. Maybe the required headers are included?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests