RTC Forums

Subscription => Support => Topic started by: jeff.lott on December 06, 2015, 04:23:20 AM



Title: Using rtcActiveX in BPL package plug-in's
Post by: jeff.lott on December 06, 2015, 04:23:20 AM
I'm nearly done creating the framework for my JSON REST server using rtc components.
It's a tiny exe that loads plugin's I've created that do all the work.
The plugin's are Delphi bpl packages.
The exe is set, as it must be, to use runtime packages, including rtcSDK.dcp
Any plugin package that uses components TRtcHttpServer, TRtcDataProvider, and such must also add rtcSDK.dcp to their "requires" list.
Otherwise, when loading the package you'll get a message like
Cannot load package 'Settings_Controller.'  It contains unit 'rtcSDK', which is also contained in package 'HTTPserver'

Most of my plugin packages will use OLE DB Connections, so I need to add "rtcActiveX" to their uses list.
But rtcActiveX is not provided by rtcSDK.dcp, so I'm getting the error
Cannot load package 'Settings_Controller.'  It contains unit 'rtcActiveX', which is also contained in package 'HTTPserver'
What runtime rtc package do I need to add to my exe/"uses" and plug-in.bpl/"requires" lists?

Thanks, Jeff


Title: Re: Using rtcActiveX in BPL package plug-in's
Post by: jeff.lott on December 06, 2015, 05:49:14 AM
Ahhh, never mind.
I created a new package rtcActiveX.bpl with the rtrActiveX.pas unit as the only unit in "contains". Then added rtcSDK.dcp to it's "requires" list.
Built the package.
Now I can add rtrActiveX.dcp to any of my plug-in.bpl packages that need to use rtrActiveX unit.
So all is good!


Title: Re: Using rtcActiveX in BPL package plug-in's
Post by: D.Tkalcec (RTC) on December 06, 2015, 07:56:52 PM
Thumbs up and thanks for your feedback :)

Best Regards,
Danijel Tkalcec