Overloadable operator expected - _di_ISequentialStream
Posted: 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:
The error messages are:
Row 312 is as followed
Row 389 is as followed
I am using C++ Builder 10.2. Can you please help me out? Thank you in advance for your support.
The header file contains the following includes:
Code: Select all
#include <System.Classes.hpp>
#include <Winapi.Winsock.hpp>
#include "ScHttp.hpp"
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
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
};
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
};