Guest mia--chan Posted December 10, 2003 Report Posted December 10, 2003 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 December 11, 2003 Report Posted December 11, 2003 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 December 11, 2003 Report Posted December 11, 2003 The last bit of http://smartdevices.microsoftdev.com/Learn...ticles/622.aspx Might be of use.
Guest Kallisti Posted December 11, 2003 Report Posted December 11, 2003 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 December 11, 2003 Report Posted December 11, 2003 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 December 11, 2003 Report Posted December 11, 2003 SimGetSmsStorageStatus(). It's returning an error number I got the same error.
Guest al23883 Posted April 10, 2004 Report Posted April 10, 2004 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 April 11, 2004 Report Posted April 11, 2004 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.
Guest MiloTheGreat Posted June 7, 2005 Report Posted June 7, 2005 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#?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now