Page 1 of 1

Overloadable operator expected - _di_ISequentialStream

Posted: Sun 19 Apr 2020 11:14
by DmitriNL
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.

Re: Overloadable operator expected - _di_ISequentialStream

Posted: Sun 19 Apr 2020 11:26
by DmitriNL
I found the solution. The solution is adding '#include <Vcl.Controls.hpp>' to the header file of your project.

Re: Overloadable operator expected - _di_ISequentialStream

Posted: Tue 21 Apr 2020 14:22
by ViktorV
We are glad that you found the issue solution.
Feel free to contact us if you have any further questions about SecureBridge.

Re: Overloadable operator expected - _di_ISequentialStream

Posted: Wed 22 Apr 2020 16:25
by DmitriNL
Thank you for your support.

Re: Overloadable operator expected - _di_ISequentialStream

Posted: Fri 24 Apr 2020 10:04
by ViktorV
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.