用Delphi開發簡單ActiveX控制項

2021-08-30 20:04:49 字數 786 閱讀 6301

1.開啟delphi

2.file->new->other->activex->active form

[img]

3.彈出active form wizard視窗,採用預設配置,單擊「ok」

[img]

4.出現form設計介面,這裡新增乙個button和乙個edit控制項

[img]

5.雙擊button,新增事件處理**

procedure tactiveformx.button1click(sender: tobject);

begin

edit1.text := 'hello world!';

end;

6.儲存並編譯程式

7.發布程式,project->web deployment options,彈出web deployment options視窗,填寫說明如下:

target dir:c:\inetpub\wwwroot(iis目錄,ocx發布的目錄)

target url:http://localhost/(ocx發布的url)

html dir:c:\inetpub\wwwroot(iis目錄,html發布的目錄)

[img]

8.除錯active form,run->parameters,彈出run parameters視窗,填寫說明如下:

[img]

9.註冊activex,run->register activex server

[img]

10.執行程式

[img]

[img]

用Delphi開發DirectX控制項

2000 09 02 00 22 2058人閱讀收藏 舉報 microsoft推出的directx使我們在windows9x下開發遊戲軟體便利了許多。一般在介紹directx 的資料裡都講的是如何用vc 來開發,其實inprise公司的語言也可以用來開發基於directx的遊戲軟體。我們這裡用的是d...

用delphi開發activex列印控制項

做web最不好弄的就是列印了,用ie自帶的列印功能不太完美,功能也不強,所以我就將fastreport 4.3報表整合到web中,實現的方法 delphi7的activex fastreport,下面就是實現的操作步驟 第 一 建立active form 第一步完成後,會產生form和tlb的檔案及...

用delphi開發activex列印控制項

做web最不好弄的就是列印了,用ie自帶的列印功能不太完美,功能也不強,所以我就將fastreport 4.3報表整合到web中,實現的方法 delphi7的activex fastreport,下面就是實現的操作步驟 第 一 建立active form 第一步完成後,會產生form和tlb的檔案及...