Receiving SMS example

Hi all,

Have anyone tried the Receiving SMS example from the MSDN library
There seems to be a problem...

It seems that I can deploy it to my PPC but an error of MissingMethodException at the function call to DllRegisterServer() will always occur.

Need help urgently!!!


Answer this question

Receiving SMS example

  • swarmt

    Hi Nazim,

    Thanks for the link. Yes it can do what I want, but it is in embedded visual C++ which is too profound to me. And i also have trouble trying to build the mapiruledll. Is it possible to convert it to vb.net instead

  • C#newbie

    Hi Nazim, which dll file did you include The one from emulatorRel/emulatorDbg
  • Sean Buck

    Hi Nazim,

    according to Maarten's article(the link given above), I can successfully deploy it using the pcoket pc 2003 emulator, but there is a problem when I deploy it to my pocket PC.

    These are the steps that I followed:
    1) Build the mapirule successfully
    2) Change the dll in the CaptureSMS program to the dll that is found in the emulatorRel
    3) Deploy to pocket PC

    But this is the error I get: An unhandled exception of type 'System.MissingMethodException' occurred in CaptureSMS.exe

    And this line of code is highlighted: if (DllRegisterServer() != 0)
     
    Can you tell me what I have done wrong or what steps I have missed

  • Java Programmer

    Are you sure mapirule.dll is getting deployed to the device also The DllRegisterServer API PInvokes to that dll which is a native dll also included in the sample. 



  • LTrue

    How did you fix the "MissingMethodException" error you were getting I am having exactly the same problem - the emulator works, but the actual device throws an exception.


  • nikos_22

  • banjaxed

    Can you provide a step by step walkthrough about how you go about deploying this programs into your pocket PC

    Thanks!

  • Serena3838

    Hi Vnewbie

       U asked for a converted app for VB but then said got tat exmple already, wer did u get it from can u pls help me... cz i even need the same in VB...

    Tanx in advance...



  • mahmoodilyas

    I have a more unified sample posted as a VS 2005 solution posted at http://blogs.msdn.com/nazimms/archive/2005/09/08/462495.aspx

  • Arjang Fahim

    From Whidbey you can right click on your mapirule project and say deploy. That should get the dll in the right directory on the device, based on if you are using debug or release.

  • Nilesh Hirpara

    Hi all, I've done the retrieving SMS part from the inbox. But now I have a new problem: That is how do I write an intercept routine so that I can detect whether there is new incoming SMS messages.

    Any examples are welcomed!

  • JCS

    Hi all,

     

    I've found out that this example actually shows you how to send messages, and it also has the capability to read received SMS. But it is not shown, Does anyone know how to do it

     

    This is the link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/sms_apps2.asp


  • Dean Ryan

    Hi guys,

     

    I'm able to do the example already. Thanks for your patience and help! Big Smile


  • csgear

    The docs at
    http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/mob5lrfIMailRuleClient.asp

    say that you need to write a COM object that implements IMailRuleClient and register the COM object and also add another registry entry on the device.

    The issue is that it has only one method ProcessMessage that you use to apparently move messages around. But what you could do is post a window message whenever this happens and you could have your managed app listen for it.

  • Receiving SMS example