Board index » off-topic » Registering RDMs dynamically in C++Builder
Stéphane
Delphi Developer |
Registering RDMs dynamically in C++Builder2006-01-14 05:36:18 AM off-topic17 I'm currently loading my RDMs using a TSharedCommection like in the example below. 1. Am I correct that the RDM instance cannot be shared between connections unless using TWebConnection? 2. How can I do the equivalent at run-time only? So that I don't have to code such a property in the main SystemRDM, but instead with relevant RDM. STDMETHODIMP TSystemRDMImpl::get_RDM_People(IPeopleRDM** PtrToVar_Out) { try { //Create Instance. CoPeopleRDM::Create( PtrToVar_Out ) ; //Init. (*PtrToVar_Out)->SetSystem( (long)m_DataModule ) ; return S_OK ; }//try catch(Exception &e) { return Error( e.Message.c_str(), IID_ISystemRDM ) ; }//catch }//get_RDM_People() TIA, Stephane |