RTC Forums
November 24, 2024, 03:27:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Using rtcActiveX in BPL package plug-in's  (Read 4576 times)
jeff.lott
RTC Expired
*
Posts: 11


« 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
Logged
jeff.lott
RTC Expired
*
Posts: 11


« Reply #1 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!
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #2 on: December 06, 2015, 07:56:52 PM »

Thumbs up and thanks for your feedback Smiley

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 17 queries.