S
single
Unregistered / Unconfirmed
GUEST, unregistred user!
用DDE通讯,客户端相关程序段如下:
DDeClientConv := TDdeClientConv.Create(TComponent(nil));
DDeClientItem := TDdeClientItem.Create(TComponent(nil));
With DdeClientConv do
begin
DataMode := ddeManual;
ServiceApplication := 'C:/Documents and Settings/maniac/My Documents/My Program/Gold/Gold.exe';
DdeService := ServiceApplication;
DDETopic := 'DDEServerConv';
DDEClientItem.DdeItem := 'DDeClientItem';
if not OpenLink then
MessageDlg('不能建立DDE', mtInformation,
[mbOk], 0);
end;
按Delphi的帮助说如果把DataMode设为ddeMenual,
则调用Openlink若不能发现DDE Server,将自动按照
ServiceApplication中的值把Server Application启
动起来,但是我在实际运行中,并没有发生这个情况,
请问可能错在哪里?
DDeClientConv := TDdeClientConv.Create(TComponent(nil));
DDeClientItem := TDdeClientItem.Create(TComponent(nil));
With DdeClientConv do
begin
DataMode := ddeManual;
ServiceApplication := 'C:/Documents and Settings/maniac/My Documents/My Program/Gold/Gold.exe';
DdeService := ServiceApplication;
DDETopic := 'DDEServerConv';
DDEClientItem.DdeItem := 'DDeClientItem';
if not OpenLink then
MessageDlg('不能建立DDE', mtInformation,
[mbOk], 0);
end;
按Delphi的帮助说如果把DataMode设为ddeMenual,
则调用Openlink若不能发现DDE Server,将自动按照
ServiceApplication中的值把Server Application启
动起来,但是我在实际运行中,并没有发生这个情况,
请问可能错在哪里?