By: Kevin Scardina
Abstract: After installing the patch to CBuilder4 even the simplest MIDAS applications will not work.
'src->QueryInterface (GetIID(), (LPVOID*)(&intf))': No such interface supported @ D:/CBUILD~1/INCLUDE/VCL/utilcls.h /2014
For example if you created a remote data module that exported a TTable called Table1 some of the server
code generated would look as follows:
STDMETHODIMP TTestServerImpl::get_Table1(IProviderPtr* Value)
_di_IProvider IProv = m_DataModule->Table1->Provider;
*Value = IProv; //<- HERE IS ONE OF THE PROBLEMS!!!
return Error(e.Message.c_str(), IID_ITestServer);
What you need to do is change the line:
*Value = IProv;
*Value = (IProvider*)IProv;
If you do this anywhere in this file that a return value (this includes out parameters) is an IProviderPtr the server should work fine.
Try C++Builder XE4 free for 30 days
Click to download now!
More social media choices:
C++Builder on Google+
@RADtools on Twitter
Server Response from: ETNASC04