BPL Package Technology

Source: Internet
Author: User

There can be many forms and many functions in the package, but all the exports that can be called externally are required.

Exports
Doshowform;

Function doshowform;
Begin
Fmwindow: = tform. Create (application );
Fmwindow. show;
End;

Note: If a certain PAS has manyProgramYou can package it into a BPL file so that it will not be used in another package.

In an external executable program, the project option sets the runtime package: VCL; RTL; dbrtl; adortl; vcldb (main). If a third-party control is used in development, you may need to add some third parties here.

Package call example
VaR
Packagemodule: hmodule;

function doshowform;
type
tdoshowform = function ();
var
doshowform: tdoshowform;
begin
packagemodule: = loadpackage ('bplxxx. BPL ');
If packagemodule <> 0 then
try
@ doshowform: = getprocaddress (packagemodule, doshowform);
if assigned (dostockadjust) then
begin
doshowform;
end;
release T
If packagemodule <> 0 then unloadpackage (packagemodule);
end;
end;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.