|
아래(No.4504) C++Builder to EXCEL 관련 Process간 DDE통신에 대한 내용은
많은 도움이 되었습니다.
저는 Server와 Client를 모두 C++ Builder로 쓰는
DDE통신 프로그램를 짜야 합니다.
그런데 생각되로 되지를 않습니다.
Server에서 timer를 사용해 데이타를 생성한후(No.4504 예제처럼)
Client에 그대로 Display 될수 있도록 하고 싶습니다.
Help(아래 원문)에는 DdeServerItem의 Lines또는 Text값이 바뀌면 DdeClientItem에 전달된다고
하였으나 나의 Client 프로그램쪽에서는 Server의 변화되는 데이타가 Display 되지 않습니다.
단, Client의 OpenLink시 한번 Display됩니다.
또다른현상 :
Client의 OpenLink시에 다음과 같이 코딩하면
ShowMessage("Link to DDE server.") 다이얼로그 창이 닫히지 않으면 성공적으로 통신이되고
닫으면 통신이 되지않습니다.
---다음---
if (DdeClientConv1->OpenLink())
ShowMessage("Link to DDE server.");
(Set Lines to the data the DDE server item sends to the DDE client.
Whenever the Lines property changes,
an OnChange event occurs and then the new value is sent to the DDE client
)
님들 많이 도와주세요 ......
|