A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get Microsoft.Office.Interop.Outlook.TaskItem from the IUnknown (C#)



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 3rd 07, 04:24 PM posted to microsoft.public.outlook.program_addins
Godandag
external usenet poster
 
Posts: 8
Default How to get Microsoft.Office.Interop.Outlook.TaskItem from the IUnknown (C#)

Hi all.

In other words, how to implement the method GetTaskFromIntPtr in the
code below?

using Outlook = Microsoft.Office.Interop.Outlook;

....

public void Method1(Outlook.TaskItem task)
{
IntPtr ptr = Marshal.GetIUnknownForObject(task.MAPIOBJECT);
Outlook.TaskItem task1 = GetTaskFromIntPtr(ptr); //
GetTaskFromIntPtr - ?
}

public Outlook.TaskItem GetTaskFromIntPtr(IntPtr)
{
????
}

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C:\Program Files\Microsoft Office\custom11.prf ? Office/Outlook 20 bhall Outlook - Installation 0 December 15th 06 08:42 PM
Transfer Contacts Microsoft Office 2000 to Office for Mac 2004 Alfred Esmeijer Outlook - Using Contacts 1 November 27th 06 02:57 PM
TaskItem and AppointmentItem formated body razvantim Outlook and VBA 10 November 10th 06 07:55 PM
Msdn help for Microsoft.Office.Interop.Outlook members DavidE Add-ins for Outlook 0 August 9th 06 07:45 AM
Contact "subfolders" in Microsoft Outlook in Microsoft Office 2003 Rhonda Outlook - Using Contacts 2 July 12th 06 05:07 AM


All times are GMT +1. The time now is 12:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Љ2004-2025 Outlook Banter.
The comments are property of their posters.