集成Pocket Outlook和C#应用程序 [英] Integrating pocket outlook and C# application

查看:49
本文介绍了集成Pocket Outlook和C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以通过正确的方向指出我遇到的问题来帮助我

I am hoping someone can help me by pointing in the right direction with a problem I have

我希望能够使用Outlook \ Exchange服务器创建约会,并使用Pocket Outlook将约会同步到我的设备.在设备上,我希望能够在设备上打开约会应用程序,单击菜单选项,然后将约会详细信息传递给另一个应用程序(我也在编写).

I want to be able to create appointments using Outlook\Exchange server and sync those to my device using pocket outlook. On the device I want to be able to open the appointments application on the device, clicking on a menu option and pass the appointment details to another application (which I am writing also).

有什么想法吗?这做起来有多容易?在哪里开始寻找如何在Outlook和我的应用程序之间传递数据的最佳地点?我已经阅读了msdn上的POOM部分,并认为我可以执行菜单选项,但不知道解决集成的最佳方法.另一个应用程序是用C#编写的.

Any ideas? How easy is this to do and where is the best place to start looking for working how to pass data between outlook and my application? I've read the POOM section on msdn and think I can do the menu option but dont know the best way to tackle the integration. The Other application is written in C#.

谢谢

莫里斯

推荐答案

这听起来像是您在询问有关Pocket Outlook插件和其他"应用程序之间的进程间通信的更多信息.鉴于您应该能够从Outlook插件/菜单项等获取约会的ID,那么您可以使用多种方法将该ID传递给其他应用,然后让其打开约会集合并找到约会通过POOM进行正确的约会.

This sounds like you are asking more about inter-process communication between your pocket outlook plugin and your 'other' app. Given that you should be able to get the id of the appointment from the outlook plugin/menu item etc. then you can use a number of methods to pass that id to your other app, and then have it open the appointments collection and find the right appointment via POOM.

这可能很简单,就像向您的其他应用程序发送ID为LPARAM的Windows消息并在您的其他应用程序中使用消息窗口来接收消息一样简单.(虽然不确定ID是否适合LPARAM,但可以选择WM_COPYDATA),但是这种方法需要在开始时进行一些握手,以将窗口句柄彼此传递.

This could be as simple as sending your other app a windows message with the id as the LPARAM and use a messagewindow in your other app to receive the message. (Not sure if the id will fit in LPARAM though, WM_COPYDATA could be an alternative), however this approach needs some handshaking at the start to pass the window handles to each other.

您可以在两个进程或tcp/ip套接字之间使用P2P(点对点)消息队列.

You could use P2P (Point to point) message queues between the two processes, or tcp/ip sockets.

另一种方法是让Pocket Outlook插件使用自定义属性标记约会,然后仅使用命名事件向其他应用发出信号以执行此操作,并且它可以通过POOM查找所有已标记的约会并对其进行处理.

One other way could be for the pocket outlook plugin to mark the appointments with a custom property, and then just use a named event to signal to the other app to do it's thing, and it could find all the marked appointments via POOM and process them.

这篇关于集成Pocket Outlook和C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆