system.missingmethodexception was unhandled

M

MrJim

Hi,

I'm experiencing an unhandled at 'smsMessage.send' with the following
error 'can't find an entry point '#48' in a pinvoke dll 'cemapi.dll''.
I've checked the references and they seem correct, any help would be
greatly appreciated.

Regards,
J

Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports Microsoft.WindowsMobile
Imports Microsoft.WindowsMobile.PocketOutlook

Public Class Form1

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click

Dim smsMessage As SmsMessage = New SmsMessage()

'Set the message body and recipient.
smsMessage.Body = txtSMS.Text
smsMessage.To.Add(New Recipient(txtName.Text, txtNumber.Text))
smsMessage.RequestDeliveryReport = True

'Send the SMS message.
smsMessage.Send()
Return
End Sub




End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top