BPL English full name Borland Package library is a special DLL file that is used for code reuse and for reducing executables. When compiling BPL, you only need to add the appropriate PAS file for the feature, and if you have a form, you need to add the DFM file. Since it is a DLL file, that is the file that is required at run time. BPL equivalent to DLLs in C + +
In the process of developing a lightweight container Based on Dynamic proxy, it is necessary to dynamically load external custom interfaces, classes, and component functions. You cannot determine whether to use DLL or BPL as the implementation method of custom components. Some technical details were found during repeated tests, especially when the string type was used as a parameter or return value.
Anyone who has developed DLL using Delphi knows that
Some time ago to study the development of the BPL way, just recently there is a small project, so try a bit, the project has been completed. Have some experience and experience, write down with you to share, please put forward insufficient, in addition, in the study of BPL friends, there are problems can be discussed together, in order to go faster. A summary of a project (Exe+
[Original]
That is correct. a BPL is a DLL. (but not all DLLs are bpls .)
> But I still found some different, such as that I can create> Object from the host EXE and that pass to a BPL and modify it safely,> If I do same to a DLL, I can not modify any referenced property of the object.
When you use packages, There is only ever one copy of any unit inMemory. One copy of forms, one copy of sysutils, one copy
Previously, for the differences between BPL and DLL, it has always been a comprehensive solution, most of which (I have read), even if it is better than the typical Delphi solution, it's also vague! Thanks to the help in finding a better description !!!
That is correct. a BPL is a DLL. (but not all DLLs are bpls .)
> But I still found some different, such as that I can create
> Object from the host
1. Introduction of various files in Delphi and their relationships.
OXC: ActiveX control. It will be installed in a component package dpk. in imports, three files are created: Pas, DCU, and DCR.
DLL: the dynamic link library file. Its exports can be written in either the project file or the unit file. There is no difference.
Dpk: component package file, which is composed of multiple components (PAS.
BPL: the package file is actually a DLL file, but so
For the BPL package, I personally understand is: is a package, and Dll,exe similar, put the code in the package to save it.First, talk about how to create a BPL package1. Open the Delphi IDE (Delphi7 for example)-->file-->close all (off all)-->file-->new-->other--> in the New Item tab (new)-->package-->ok;2, click OK, Delphi helped us to create a number of packages needed for the basic things, such as,At th
Analysis on the reason of frequent drop of modem
1, if the ADSL modem just as bridging mode access, first through the ADSL Modem Web page to view the line attenuation, Snr margin (this value is normally 15-40db, if less than 10db, indicating that the current line quality is not good enough), line speed and other parameters, If these parameters are abnormal, plea
What does the ADSL modem mean? often have netizens to consult this problem, ADSL modem is a modem, commonly known as "cat", users of ADSL broadband after (telephone line internet), must use ADSL modem this equipment, can normal internet.
Why do you use ADSL Modem?
ADS
Once heard that "BPL is a special kind of dll", but did not think that this sentence has so much significance. Recently, I was surprised to see someone write the export statement in the unit belonging to a dpk. But all the help of Delphi, and export related is the library. Today read the "Delphi Source code Analysis", just know the meaning of this sentence. So there is the following corollary:
For DLL engineering, exports can either be written in eng
problem Phenomenon: tip can ' t load PACKAGE:DCLITE70.BPLThe cause of the problem: It is all Window2003 Data Execution Prevention (DEF).Workaround:Win2003server SP1 + delphi7, when starting the Delphi will be prompted can ' t load PACKAGE:DCLITE70.BPL, after entering the options when the exception occurs.Workaround:Right-click My Computer. Click Properties.In System Properties, click Advanced.In performance, click Settings.In Performance options, clic
There can be many forms and many functions in the package, but all the exports that can be called externally are required.
ExportsDoshowform;
Function doshowform;BeginFmwindow: = 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; a
"Can ' t load package C:\Programme\Afalinasoft\Add-in Express 2\D5UNITS\ADXWIZARDD5.BPL.Component tworddocument can ' t be registered by package DCLOFFICE2K50.BPL because it have already been registered by package Dclaxserver50."I Think you have installed "MS OfficeXPSample Automation Server Wrapper Components "and if your follow this linkhttp://www.add-in-express.com/add-in-delphi/ Requirements.php you'll see that MS Office -Sample Automation Server
proceduretform1.formcreate (sender:tobject);varArtticontext:trtticontext; Arttipackage:trttipackage;beginArtticontext:=trtticontext.create; forArttipackageinchArtticontext.getpackages () Do begin ifSametext (Extractfilename (Arttipackage.name),'TEST. BPL') Then beginArttiinstancetype:= Arttipackage.findtype ('Unit2.tform2') asTrttiinstancetype; ifArttiinstancetype Nil Then begin beginFRM:= ARttiInstanceType.MetaclassType.Create asTf
SerialPort enables modem incoming call display
A friend took a case, but had to go on a business trip temporarily, so I called some functions for me to do it. I have always paid attention to WEB programming, but I am still unfamiliar with serial programming.ArticleA lot. Of course, it is better to count the articles in cnblogs for help. Write this into your blog for future reference, hoping to help those who need help.This section mainly describes ho
Operating environment: FreeBSD 3.4-release, the same dimension 56K external modem
First, set/etc/ppp/ppp.conf
#vi/etc/ppp/ppp.conf
If the modem company COM1 Port is set to:
Default
Set DEVICE/DEV/CUAA0 (other can be invariant)
.....
If the modem company COM2 Port is set to:
Default
Set DEVICE/DEV/CUAA1 (other can be invariant)
.....
Second, run PPP int
Win2003server SP2 + Delphi7, the system prompts can't load package: dclite70.bpl when you start delphi. An exception occurs when you open options.Solution:
Right-click my computer ". Click properties ".Click Advanced in system properties ".Click set in performance ".In performance options, click data protection ".Click Add ". Select the delphi7installation directory, and then select delphi32.exe under the bindirectory.Restart Delphi.
It is caused by
serial port and the PC communication, the communication line connected to the charger.Hart Conversion switch: 250Ω, none, 24v/250ω three Hart conversion modesdial to "250Ω" is the internal 250Ω resistor working state;dial to "None" is not built-in 24V and 250ω resistance of the working State;dial to "24v/250ω" is the built-in 24V and 250Ω resistors working state.According to the actual situation, the conversion switch is dialed to the corresponding location, and then connected to the line.① bui
SMS cats are devices used to send and receive text messages. They are the same as mobile phones.Insert the SIM card and connect it to the computer through the (USB or serial port) data cable/PCI slotYou can use related software on your computer to send and receive text messages.
Related software is the text message application that sends and receives text messages.You can develop your own device, or ask the device manufacturer of SMS to provide
The principle and fee of sending and receiving te
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.