我在vb下编写了一个控件
Private Sub UserDocument_Initialize()
userprint("ddd","ddddddd")
End Sub
sub userprint(d as string,c as string)
msgbox d
msgbox c
end sub
保存为userinfo控件现在我想在delphi中使用这个控件
1 如何加载?
2 如何传值呢? 如:我想在delphi中传一个d为"程序员" c为"你好" 到控件中,如何实现呢?
Private Sub UserDocument_Initialize()
userprint("ddd","ddddddd")
End Sub
sub userprint(d as string,c as string)
msgbox d
msgbox c
end sub
保存为userinfo控件现在我想在delphi中使用这个控件
1 如何加载?
2 如何传值呢? 如:我想在delphi中传一个d为"程序员" c为"你好" 到控件中,如何实现呢?
begin
showmessage(d);
showmessage(c);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
userprint('ddd','ddddddd');
end;
用Compent-Import ActiveX导入就可以和普通组件一样用了。