惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
G
GRAHAM CLULEY
S
Securelist
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Project Zero
Project Zero
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
B
Blog RSS Feed
C
Cisco Blogs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
K
Kaspersky official blog
D
Docker
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Cyberwarzone
Cyberwarzone
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
H
Help Net Security
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
NISL@THU
NISL@THU
美团技术团队
腾讯CDC

博客园 - DELPHI技术

How to get File Summary Info 动态建表(示例) DBGridEh应用实例(来自delphi园地) DBGrid、DBGrideh专题总结(来自delphi园地) delphi 默认情况下参数及返回值的保存位置 Rotating Text How to Parse a Delimited String Into a String List - DELPHI技术 2005年5月20日Borland Delphi首席科学家Danny Thorpe谈Delphi的未来! 什么是BPL?在BPL中有多少单元的源代码 使用动态包导出函数的调用单元完整源代码 “类引用”概念 创建包 包和DLL的对比 动态包(bpl)的一个窗体源代码 动态调用包(bpl)的窗体源码 Delphi中预想不到的代码 一个完整身份证效验程序 基本算法(用 PASCAL 描述) 公用函数
使用动态包导出函数的单元的完整源代码
DELPHI技术 · 2005-07-16 · via 博客园 - DELPHI技术

unit FunkFrm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TFunkForm = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
//Declare the package functions using the StdCall calling convention
procedure FunkForm; stdcall;
function AddEm(Op1, Op2 : Integer) : Integer; stdcall;

//Export the functions
exports
  FunkForm,
  AddEm;

implementation

{$R *.dfm}
procedure FunkForm;
var
  FunkForm : TFunkForm;
begin
  FunkForm := TFunkForm.Create(Application);
  try
    FunkForm.ShowModal;
  finally
    FunkForm.Free;
  end;  
end;

function AddEm(Op1, Op2 : Integer) : Integer;
begin
  Result := Op1 + Op2;
end; 
procedure TFunkForm.Button1Click(Sender: TObject);
begin
  ShowMessage('你已经正确地调用了包的导出函数。');
end;

end.