Jump to content

Recommended Posts

Guest mia--chan
Posted

Hello,

I'm trying to get SMS (or at least the number of SMS received) from a VB .NET application for smartphone 2003, but I'm not very familiar with platform invoke.

Has anyone a code sample of the SMS API or SIM API, with VB .NET (I found this one (in french) http://www.microsoft.com/france/msdn/techn...gramming_topic4, but it's in C# ;_;

I tried to convert it into VB but it doesn't work (maybe data types mapping).

Guest mia--chan
Posted

Actually, I just need to get the NUMBER of SMS received. The SMS API seems to provide only a way to send SMS.

The SMS are stocked in the file Storagecemail.vol, but it is protected and cannot be read anymore.

Any ideas ?

Guest Kallisti
Posted

FWIW, I've knocked up some code to try all of this, and I fall over at the SimGetSmsStorageStatus(). It's returning an error number that obviously means nothing as I have no reference documentation. -2147467259 (as an Integer) if anyone has any documentation on this entire platform?!?!!??!

Guest mia--chan
Posted

I already know this example, it works well on my E200, but it doesn't allow to read received SMS.

There is a way to get the SIM status concerning SMS with the SIM API (tried it already), but I need to get the SMS on the phone (file Storagecemail.vol)..

Guest mia--chan
Posted
SimGetSmsStorageStatus(). It's returning an error number

I got the same error.

  • 3 months later...
Guest al23883
Posted

1) The number it is returning is a load of bytes. You need to access the byte array at the required offset as the last part contains more than just the number but various flags and other stuff.

2) You may have problems as it is a privileged API and can only be used on an unlocked device.

3) Visit OpenNetCF.org, there is a framework there, there may be of some assistance, it is however in C#.Net.

Guest NeilC_MVP
Posted

Even though it's written in C#, you can still use the Smart Device Framework with VB .NET apps. Just because we choose to code in C# doesn't mean to neglect VBers. We actually go out of our way to help VB .NET users. In fact, we ship VB .NET application templates along with the SDF.

  • 1 year later...
Guest MiloTheGreat
Posted
Even though it's written in C#, you can still use the Smart Device Framework with VB .NET apps. Just because we choose to code in C# doesn't mean to neglect VBers. We actually go out of our way to help VB .NET users. In fact, we ship VB .NET application templates along with the SDF.

<{POST_SNAPBACK}>

Has anyone got a working example of this VB or C#?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.