Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

在bcb裡,要如何在一支程式,去Call另一支程式呢?

0 views
Skip to first unread message

扁民 ^^!

unread,
Jan 18, 2001, 8:25:10 PM1/18/01
to
※ 引述《marc4...@bbs.cis.nctu.edu.tw (美濃小孩)》之銘言:
> 如標題,一樣,例如a程式呼叫b程式!

如果b程式只是原始碼, 用include 一個.h檔或是.cpp檔

如果b程式是COM元件, 用import Type Library或是import ActiveX Control

如果b程式是可執行檔, 用ShellExecute() API

HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);

--
-------------------------------------------------------------------------------
握有生殺大權的人,常覺得自己的所作所為都是正確的。

                 道格拉斯(Paul Douglas)

--
[m※ Origin: 雲林科技大學藍天使 <bbs.yuntech.edu.tw> [From: 211.22.142.170]

0 new messages