Overloadable operator expected - _di_ISequentialStream

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
DmitriNL
Posts: 15
Joined: Fri 26 Nov 2010 15:47

Overloadable operator expected - _di_ISequentialStream

Post by DmitriNL » Sun 19 Apr 2020 11:14

I have implemented TScHttpWebRequest (SecureBridge) in an existing project. The project won't compile due some errors. (Using SecureBridge in a new project doesn't throw these errors)

The header file contains the following includes:

Code: Select all

#include <System.Classes.hpp>
#include <Winapi.Winsock.hpp>
#include "ScHttp.hpp"
The error messages are:

Code: Select all

[bcc32 Error] ScHttp.hpp(312): E2076 Overloadable operator expected
[bcc32 Error] ScHttp.hpp(312): E2040 Declaration terminated incorrectly
[bcc32 Error] ScHttp.hpp(389): E2076 Overloadable operator expected
[bcc32 Error] ScHttp.hpp(389): E2040 Declaration terminated incorrectly
Row 312 is as followed

Code: Select all

public:
	#if defined(MANAGED_INTERFACE_OPERATORS)
	// {0C733A30-2A1C-11CE-ADE5-00AA0044773D}
	operator _di_ISequentialStream() ===> row 312
	{
		_di_ISequentialStream intf;
		this->GetInterface(intf);
		return intf;
	}
	#else
	operator ISequentialStream*(void) { return (ISequentialStream*)&__ISequentialStream; }
	#endif
	
};
Row 389 is as followed

Code: Select all

public:
	#if defined(MANAGED_INTERFACE_OPERATORS)
	// {0C733A30-2A1C-11CE-ADE5-00AA0044773D}
	operator _di_ISequentialStream() ===> row 389
	{
		_di_ISequentialStream intf;
		this->GetInterface(intf);
		return intf;
	}
	#else
	operator ISequentialStream*(void) { return (ISequentialStream*)&__ISequentialStream; }
	#endif
	
};
I am using C++ Builder 10.2. Can you please help me out? Thank you in advance for your support.

DmitriNL
Posts: 15
Joined: Fri 26 Nov 2010 15:47

Re: Overloadable operator expected - _di_ISequentialStream

Post by DmitriNL » Sun 19 Apr 2020 11:26

I found the solution. The solution is adding '#include <Vcl.Controls.hpp>' to the header file of your project.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Overloadable operator expected - _di_ISequentialStream

Post by ViktorV » Tue 21 Apr 2020 14:22

We are glad that you found the issue solution.
Feel free to contact us if you have any further questions about SecureBridge.

DmitriNL
Posts: 15
Joined: Fri 26 Nov 2010 15:47

Re: Overloadable operator expected - _di_ISequentialStream

Post by DmitriNL » Wed 22 Apr 2020 16:25

Thank you for your support.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Overloadable operator expected - _di_ISequentialStream

Post by ViktorV » Fri 24 Apr 2020 10:04

Thank you for the interest to our product.
If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply