This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 请教:我在设计程序框架时,用消息实现不同界面模块间的通讯。一同事说这方法已过时,不知大家都用什么方法?
-gx0408(neustone);
2007-1-27
(#3460254@0)
-
why not use English to describe? I really have no idea what 消息 actually means. web Service?
-static(牛哥);
2007-1-27
(#3460267@0)
-
Sorry. We use MFC to design window-based application. The base class of GUI is CWnd, and the message is sent by CWnd::SendMessage.
-gx0408(neustone);
2007-1-27
(#3460354@0)
-
message,顾名思义,叫消息
-akoei(停车**枫林晚);
2007-1-30
(#3465733@0)
-
2000年后的新人吧?
-guanshui88(约定);
2007-1-30
(#3466126@0)
-
消息是过时了,而且在Vista下因为session隔离,在services中是不会工作的。我们一般优先选用COM,其次是IPC,例如pipe。
-dpff(dpff);
2007-1-27
(#3460286@0)
-
对于普通的MFC程序GUI模块间通讯,COM似乎是牛刀杀鸡了。
-gx0408(neustone);
2007-1-27
(#3460369@0)
-
我个人还是偏向在模块之间直接调用;虽然消息的耦合度比较松,但是因为线程调用转换以及MFC复杂的消息处理机制,一旦出了问题很难跟踪,举个例子,两个线程互相SendMessage就很容易死锁。
-dpff(dpff);
2007-1-28
(#3461977@0)
-
misleading.
-iwantcar(恶疾,时日无多,戒网);
2007-1-28
(#3462338@0)
-
Message is the future. sigh. I have design almost an OS based on that in 1998. I was poor otherwise I would continue. deadlock because you didn't use it well. TCP/IP is kind of message itself.
-iwantcar(恶疾,时日无多,戒网);
2007-1-28
(#3462352@0)
-
Do you mind to explain "Message is the future"? And what's the benefit it could get compared with direct call in case of OS API?
-dpff(dpff);
2007-1-28
(#3462421@0)
-
Mach, JAVA, COM, tcp/ip. ETC... ATM, B-ISDN, MUTLIMEDIA.EVERYTHING IS INFORMATION. MESSAGE IS THE INFORMATION FLOWING. PROCOCESSOR PROCESS INFORMATION. DOWN TO THE END....... CONTEXT SEPEARION AND COMFORMANCE AND SIMPLICITY.
-iwantcar(恶疾,时日无多,戒网);
2007-1-28
(#3462614@0)
-
for multi phread application, you should alway use postMessage instead of sendMessage.
-holdon(again);
2007-1-28
(#3462804@0)
-
消息过时了???????????????????????????? Bill, 快来看上帝!
-keepbugging(独行的猫);
2007-1-30
(#3466116@0)
-
用消息进行通信过时了。
-aaronding(流浪的八毛儿);
2007-1-30
(#3466123@0)
-
要是那样,m$ windows也该进垃圾堆了.
-keepbugging(独行的猫);
2007-1-30
(#3466168@0)
-
如果是多个application进行通信,我绝对不用message
-aaronding(流浪的八毛儿);
2007-1-30
(#3466198@0)
-
这我绝对不信.
-keepbugging(独行的猫);
2007-1-30
(#3466239@0)
-
他是自己不知道自己已经用了Message了。。。
-guanshui88(约定);
2007-1-30
(#3466251@0)
-
Depends on if it is a local or remote communication. If the system involves heterogeneous components
-static(牛哥);
2007-1-27
(#3460517@0)
-
就是进程间通信吧
-aaronding(流浪的八毛儿);
2007-1-28
(#3462366@0)
-
I use it and I like it.
-guanshui88(约定);
2007-1-30
(#3466124@0)