Le Café Central de DeVa
let.us.develop.share.messaging.more... DeVa blogs!!
I changed the way of blogging. Re-designed the site & started using the latest Windows Live Writer 2011!! Additionally added Microsoft Translator gadget available @ top of page, so that you can change the page in your preferred language!!
Hi, I am Deva working with Microsoft Dev. Messaging & Collaboration team.
This blog will assist developers who design/develop custom applications using Microsoft Messaging libraries. I will try to touch base other developer related info too.
Let us talk.develop.messaging.share.more.
Using MSDN Forum Assistant and TechNet Forum Assistant gadgets offer a convenient way for the forum users to read the forum recent threads and your own threads, it also make it easy to create new threads and search in the forum. How is simple is that…. I tried the gadgets at my Windows 7 machine in 3 simple steps 1. Double-click the gadget installation package.
2. On the popup window, click “Install” to finish the installation.
3. The gadget usually will be automatically located on the desktop. If not, look it up from the Gadget Gallery and add it to the desktop
I like the following excerpts which I liked from the interview: “you can copy and paste the code but are you know whether this is right to do in your context”, “architect should constant likely at the technical aspect of the project”. This is a great interview to catch if you're headed down this career path!
Click here to view the video:
Recently one of my developer customer migrated from Outlook 2003 to 2010. He tried running the custom application (uses CDO & Outlook 2003) in Outlook 2010. It throws the error “ActiveX component can’t create object”. Using the following test sample, I can reproduce the exact issue at my end:
As you know, Microsoft Outlook 2010 includes many architectural changes to the client-side MAPI subsystem. Of particular concern are scenarios in which Outlook is configured to use multiple Exchange accounts. Also, CDO 1.2.1 is a 32-bit client library and will not operate with 64-bit Outlook 2010. Given all these factors, CDO 1.2.1 is not supported for use with Outlook 2010 and we don’t recommend its usage with Outlook 2010. As updated earlier, in Outlook 2010 you need to re-write/migrate the code base referencing CDO to Outlook Object Model or MAPI, messaging libraries which ever suits you. So the programs/custom applications that use CDO should be re-designed to use other Application Programming Interfaces (APIs) instead of CDO. Starting with Outlook 2007, the Outlook object model was greatly expanded to provide functionality that was previously available only by using CDO 1.2.1. The Outlook 2010 object model includes some new features to expand on this more. For example, the Outlook 2010 object model has new functionality to operate correctly with multiple Exchange accounts. The Outlook object model also works for both 32-bit and 64-bit versions of Outlook. Developers should use the Outlook 2010 object model instead of CDO 1.2.1. Also, developers can still use Extended MAPI (which requires unmanaged C++) in some scenarios where CDO was required. However, if it is possible, we generally recommend that the Outlook object model be used instead of Extended MAPI.
In this post, we will take the above code sample and will show how you can migrate/re-write the CDO based application to Outlook Object Model library.
1: Dim MapiSession As Object
2: Dim MapiMessage As Object
3:
4:
5:
6: Set MapiSession = CreateObject("Mapi.Session") ' Create the MAPI Session.
7:
8: MapiSession.Logon , , , False ' Log on to the session.
9:
10: Set MapiMessage = MapiSession.Outbox.Messages.Add
11:
12: With MapiMessage
13: .To = "testuser@contoso.com"
14: .Subject = "Test"
15: .Text = "Test"
16: .send showdialog:=True
17: End With
18:
19: MapiSession.Logoff
20:
21: Set MapiSession = Nothing ' Clear the object variable.
Once you done with migration, the OOM code (created in Outlook 2010) will look like the below:
1: Dim MapiSession As Outlook.Application
2: Dim MapiMessage As Outlook.MailItem
4: Set MapiSession = CreateObject("Outlook.Application") ' Create the MAPI Session.
5: MapiSession.GetNamespace("MAPI").Logon , , , False
6:
7: Set MapiMessage = MapiSession.CreateItem(olMailItem)
8: With MapiMessage
9: .To = "testuser@contoso.com"
10: .Subject = "Test"
11: .Body = "Test"
12: .Send
13: End With
14:
15: Set MapiSession = Nothing
Please note: Microsoft product support can help developer customers migrate custom programs from using CDO 1.2.1 to using other APIs. However, Microsoft will not provide support for any scenarios in which CDO 1.2.1 is used with Outlook 2010.
Happy programming!!
1. Disconnect all devices/desktop apps and login with browser 2. Delete Facebook account (connected with Hotmail account) using the browser 3. Boot the phone 4. In Phone, Sync the Hotmail account. At end of this, delete the Facebook account 5. Now you can connect the Facebook account using Settings > Email+accounts > Facebook in the phone.
Note: Prior to that I learnt that he is connected with messenger desktop app browser, Windows Phone to the Hotmail account. Also the Facebook updates, notifications, still seem to work, but only chat doesn't