Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: W8006 Initializing const TSessionFlag with int



Permlink Replies: 1 - Last Post: Feb 18, 2018 11:27 PM Last Post By: Alexandre Machado
Team bocom

Posts: 1
Registered: 6/3/02
W8006 Initializing const TSessionFlag with int
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 14, 2018 4:54 AM
C++Builder 10.2 Update 2, IntraWeb 14.2.6

Using some of the TIWApplication properties like

__property bool IsCallBack = {read=GetSessionFlag, index=6, nodefault};
__property bool SecureMode = {read=GetSessionFlag, index=8, nodefault};
__property bool Terminated = {read=GetSessionFlag, index=9, nodefault};
...
leads to the following warning:

[bcc32 Warning] ... W8006 Initializing const TSessionFlag with int

Thanks,
team bocom
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: W8006 Initializing const TSessionFlag with int
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 18, 2018 11:27 PM   in response to: Team bocom in response to: Team bocom
Team bocom wrote:
C++Builder 10.2 Update 2, IntraWeb 14.2.6

Using some of the TIWApplication properties like

__property bool IsCallBack = {read=GetSessionFlag, index=6, nodefault};
__property bool SecureMode = {read=GetSessionFlag, index=8, nodefault};
__property bool Terminated = {read=GetSessionFlag, index=9, nodefault};
...
leads to the following warning:

[bcc32 Warning] ... W8006 Initializing const TSessionFlag with int

Thanks,
team bocom

Hi,

TSessionFlag is defined as an enum and TSessionFlags as a set of them. In Delphi it is stored as an unsigned byte, however the
the generated IWApplication.hpp defines TSessionFlag as an unsigned char. That's why you receive the warning, I believe.
There is nothing to worry about, though.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02