title: Load Delphi Seattle BPL from Delphi 7 DLL
body: <p>I have a main application in Delphi 7 which loads a Delphi 7 dll (lets call the
  "X" dll). This dll is an "application core" and a "data base code based framework". This dll holds a lot of stuff. Beyond the main application, I have a lot of others dll which uses the X dll to database access. This is a legacy application.</p>
  
  <p>I have the need to migrate the application to the Delphi 10 Seattle, but I can not do it all at once. It's a very large app.</p>
  
  <p>So I came up with this idea: Convert the main app and create a new database framework, this time in Delphi Seattle BPL, loading statically. When my app starts, I dynamically loads the X dll. In the X dll, I dynamically load the BPL and change all methods that access database to use BPL methods. This way, my others dll that I wont touch right now, will keep working.</p>
  
  <p>The problem is: I can not load the BPL from the X dll. It just raised an AV. I tried use LoadLibrary and LoadPackage, both failed.
  I found out that if I compile that X dll in Delphi Seattle, it works like a charm. But, I can not do that, because like I said in the begining, this X dll has a lot of stuff beyond the database access, and I do not have the time to convert all right now.</p>
  
  <p>So, the question: How can I load Delphi 10 Seattle BPL from Delphi 7 DLL?</p>