microsoft example program to send & receive sms messages on a WindowsMobile 6.0 device

  • Thread starter Thread starter KidSlickSneed
  • Start date Start date
K

KidSlickSneed

Hello, I am using the microsoft example program to send & receive sms
messages on a Windows Mobile 6.0 device. I am getting this error when
I try to run the program and it crashes. The error I get is copied
below. Please help me with this Ive been working on it for weeks
now. Thank you!

textwatcher.exe
Missing MethodException
Can't find PInvoke DLL 'mapirule.dll'.
at
textWatcher.textWatcherForm.menuItem1_click()
at
System.Windows.Forms.MenuItem.OnClick()
at
System.Windows.Forms.MenuItem.ProcessMnuProc()
at
System.Windows.Forms.Control._InternalWnProc()
at
Microsoft.AGL.Forms.EVL.EnterMainLoop()
at
System.Windows.Forms.Application.Run()
at
textWatcher.Program.Main()
 
The app is telling you that the DLL named "mapirule.dll" doesn't exist on
your target device. My guess is you're using a target that doesn't support
what you're trying to do.
 
If you use the Sms MessageInterceptor built into the
Microsoft.WindowsMobile.PocketOutlook library you don't need to write your
own native IMapiRuleClient (which is what I guess this dll is for). Have a
look in the SDK documentation for the
Microsoft.WindowsMobile.PocketOutlook.MessageInterception namespace (one of
the sample applications should cover this too).

Peter
 
If this is the MS sample I have used in the past, then mapirule.dll is a
custom dll which you need to create yourself and copy to the device along
with the program. It contains the 'rules' for examining received text
messages for defined content and processing those which match.

PaulK
 
Back
Top