Page 1 of 1

Problem porting DropMaster 2.4.9 to C++Builder 10.2 Tokyo

PostPosted: Tue May 30, 2017 11:00 am
by Geocentrix
I wonder if anyone can help me, please?

I am porting a large application from C++Builder 10.1 Berlin to 10.2 Tokyo. The app uses the latest release of DropMaster (v2.4.9)

When I compile the program's user interface I get:

[C++ Error] DMMiscIntf.hpp(22): no member named 'IAsyncOperation' in the global namespace


I have made no changes to the code between Berlin and Tokyo.

Is this a known problem with DropMaster and, if so, is there a workaround?

Thanks in advance for your help.

Andrew

Re: Problem porting DropMaster to C++Builder 10.2 Tokyo

PostPosted: Tue May 30, 2017 11:03 am
by Geocentrix
I should have said, the erro occurs on line 22 of DMMiscIntf.hpp:

typedef System::DelphiInterface<IBindCtx> _di_IBindCtx;
DECLARE_DINTERFACE_TYPE(IAsyncOperation) << error occurs here
DECLARE_DINTERFACE_TYPE(IDataObjectAsyncCapability)

Re: Problem porting DropMaster 2.4.9 to C++Builder 10.2 Toky

PostPosted: Wed May 31, 2017 2:54 am
by Geocentrix
I have experimented with some things and the workaround appears to be to comment out the offending line:

typedef System::DelphiInterface<IBindCtx> _di_IBindCtx;
//DECLARE_DINTERFACE_TYPE(IAsyncOperation) << error occurs here; comment line out to fix
DECLARE_DINTERFACE_TYPE(IDataObjectAsyncCapability)


Can someone from Raize please confirm this is okay to do?

Re: Problem porting DropMaster 2.4.9 to C++Builder 10.2 Toky

PostPosted: Wed May 31, 2017 4:25 am
by Raize Support
Yes, that should be fine. The IAsyncOperation is the old name of the interface and Microsoft renamed the interface IDataObjectAsyncCapability, but they kept the old GUID, which really goes against everything that Microsoft has stated regarding interfaces. The change also caused an issue when trying to use the new CLANG C++ compiler, but that particular issue was addressed the latest build of DropMaster.

Ray

Re: Problem porting DropMaster 2.4.9 to C++Builder 10.2 Toky

PostPosted: Wed May 31, 2017 6:03 am
by Geocentrix
Thanks for confirming, Ray