views:

921

answers:

4

Looking at writing an application using the .NET Compact framework to extract SMS messages on my Windows Mobile phone. I basically want to be able to export the stored message in the inbox so that they could be imported to Excel or some other program for formatting and storage.

In my personal case, I have a Treo 700w. I've written some small apps under the Compact Framework before, but I can't find anything referencing where the text messages are stored. I have some 7000 messages stored in my phone and I'd like to extract them to free up memory. I may have to keep these messages around for legal reasons so I'd like to preserve them 'offline' as far as my phone is concerned.

Has anyone ever had to do this?

A: 

I don't believe the .NET Framework (compact or otherwise) includes an API for working with SMS which is done through CE MAPI. In other words you'll have to use interop, or write the app in C++. Or if you're lazy you can just use a wrapper. =)

Serguei
A: 

If you are targeting WM6, you can use the Microsoft.WindowsMobile.PocketOutlook namespace to access SMS messages, particularly the SmsAccount class.

Jake Stevenson
Well, the phone I have is never going to see WM6 but my next one should. I may just end up delaying writing this application until I upgrade and leave the old phone 'as is' with the messages in it. Thanks for the tip!
David
A: 

how i can read sms in inbox in .net compact freamework for windowse mobile

morteza
A: 

i need your guide 4 read sms in inbox in .net freamework and windowse mobile

morteza