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()

Re: microsoft example program to send & receive sms messages on a Windows Mobile 6.0 device by ctacke/>

ctacke/>
Thu Jan 24 17:00:28 CST 2008

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.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"KidSlickSneed" <markmichuda@gmail.com> wrote in message
news:1a306cd9-b11b-4edc-9e2b-f32aef2df9dc@e6g2000prf.googlegroups.com...
> 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()



Re: microsoft example program to send & receive sms messages on a Windows Mobile 6.0 device by Peter

Peter
Fri Jan 25 03:19:33 CST 2008

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

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"KidSlickSneed" <markmichuda@gmail.com> wrote in message
news:1a306cd9-b11b-4edc-9e2b-f32aef2df9dc@e6g2000prf.googlegroups.com...
> 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()


Re: microsoft example program to send & receive sms messages on a Windows Mobile 6.0 device by Paul

Paul
Fri Jan 25 03:28:52 CST 2008

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

"KidSlickSneed" <markmichuda@gmail.com> wrote in message
news:1a306cd9-b11b-4edc-9e2b-f32aef2df9dc@e6g2000prf.googlegroups.com...
> 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()