能否将form封装成ocx,然后在vb中调用? ( 积分: 50 )

  • 主题发起人 主题发起人 lxcy
  • 开始时间 开始时间
L

lxcy

Unregistered / Unconfirmed
GUEST, unregistred user!
要求保留属性!
我要用到form中可以设置透明色,并且还可以画图的特性.
 
要求保留属性!
我要用到form中可以设置透明色,并且还可以画图的特性.
 
用activeform,可以看delphi6的例程有一个将card工程转成activeform的例子
 
我用的delphi7,好像没有.
能否说一下步骤
 
是因为今天是星期天吗?
怎么没有人回答
 
DLL可以做到
 
在dll中加入了一个form,然后在vb中调用,提示不能调用.
 
应该可以的呀,理论上是这么说得
我也这是做过delphi中dll内部调用!哈哈
把代码贴出来把,看看
 
可以加我QQ吗,我对DLL很有兴趣,可以好好聊聊啊!262231803
 
library Project1;

{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }

uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas' {Form1};

{$R *.res}
function show(aa:string ):string;

begin
form1:=tform1.Create(application);
form1.showmodal;
form1.Caption:=aaa;
end;
begin
end.

加一个form1
 
后退
顶部