![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#11
| |||
| |||
|
|
On Mon, 07 Sep 2009 01:27:01 GMT, hongyes (AT) online (DOT) microsoft.com ("Hongye Sun [MSFT]") wrote: Thanks, Dave, Please let me know if you need any further support for this issue. Have a nice day. Hi; This didn't work. We can post a message from our Office AddIn app to our applet because it is a Forms based app and so it always has a main window and that window is our program. But we cannot post a message to aour AddIn because: 1) There may be no Window - it is running on Word/Excel/PPT but most of the time we have no window open. 2) We can get the winword process and Word's main window - but we have no way from that to get our AddIn's window (if we had a hidden one that always existed). So we're back to our core problem. How do we do IPC between an app and an Office AddIn. All we need to do is pass a byte (that can have 5 different values). We can't do find by class because we're .NET and have no control over the class. We can't do find by caption because our app is translated and so the caption depends on the language it is running under. I still think named pipes is the best approach - but I think they are not shutting down when the program is exited. So my two questions are: 1) What is the best way to perform IPC? This will always be on the local computer. 2) If it's named pipes, is there a link to a correct example of how to do this from .NET? Preferably a very simple implementation as all we need to do is get a byte value across. thanks - dave david@at-at-at (AT) windward (DOT) dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://dave.thielen.com Cubicle Wars - http://www.windwardreports.com/film.htm |
#12
| |||
| |||
|
|
On Mon, 07 Sep 2009 01:27:01 GMT, hongyes (AT) online (DOT) microsoft.com ("Hongye Sun [MSFT]") wrote: Thanks, Dave, Please let me know if you need any further support for this issue. Have a nice day. Hi; This didn't work. We can post a message from our Office AddIn app to our applet because it is a Forms based app and so it always has a main window and that window is our program. But we cannot post a message to aour AddIn because: 1) There may be no Window - it is running on Word/Excel/PPT but most of the time we have no window open. 2) We can get the winword process and Word's main window - but we have no way from that to get our AddIn's window (if we had a hidden one that always existed). So we're back to our core problem. How do we do IPC between an app and an Office AddIn. All we need to do is pass a byte (that can have 5 different values). We can't do find by class because we're .NET and have no control over the class. We can't do find by caption because our app is translated and so the caption depends on the language it is running under. I still think named pipes is the best approach - but I think they are not shutting down when the program is exited. So my two questions are: 1) What is the best way to perform IPC? This will always be on the local computer. 2) If it's named pipes, is there a link to a correct example of how to do this from .NET? Preferably a very simple implementation as all we need to do is get a byte value across. thanks - dave david@at-at-at (AT) windward (DOT) dot.dot.net Windward Reports -- http://www.WindwardReports.com me -- http://dave.thielen.com Cubicle Wars - http://www.windwardreports.com/film.htm |
#13
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |