Using the Windows CE APIs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I'm trying to get my hands into some SMS programming, and there are only a couple examples on MSDN of Sending SMS messages (SendingSMS.msi doesn't even work, though). I'm seeing the attribute [DllImport("sms.dll")] used before declaring say SMSOpen. Where do I find information about the dll's I need to import to use the functions of the Phone API?

Help, please :)
Therese
 
In the Pocket PC 2003 SDK

Therese said:
Hi all,

I'm trying to get my hands into some SMS programming, and there are only a
couple examples on MSDN of Sending SMS messages (SendingSMS.msi doesn't even
work, though). I'm seeing the attribute [DllImport("sms.dll")] used before
declaring say SMSOpen. Where do I find information about the dll's I need
to import to use the functions of the Phone API?
 
Follow the link to SMS Functions for details on the methods available. The
key functions you will need are SmsOpen, SmsSendMessage, SmsClose, and a
number of structures used by them all of the Sms functions are in sms.dll.
you'll also find the SDK header files useful sms.h contains all the sms
related functions. I'm currently working on building an Sms library for
OpenNETCF, though it is far from complete at the moment.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

Therese said:
Please forgive my ignorance, but I can only find this information
http://msdn.microsoft.com/library/d...s/guide_ppc/htm/sms_short_message_service.asp
but not exactly how to use it.
 
Generally, you should post to the newsgroup, not e-mail specific people.
This has at least two advantages:

1. Anyone can reply, possibly getting you faster response, and,

2. **Anyone can *read* the responses**, possible short-circuiting another
round of the same questions.

You might also note that Peter doesn't work for Microsoft, so he's not being
paid to respond to your questions...

Paul T.
 
Paul

You know, I really didn't need to be told that someone posting on this board doesn't work for Microsoft and isn't getting paid. I post on other boards, and help people myself, yet I don't get paid. People ask to talk to me only, and that is fine, and I don't get paid. If he doesn't want to asnwer me, that is also his perogative and that also is fine by me, too

I tend to ask more detailed questions of those who don't just say 'Look at the SDK'. If that offended you, I apologize. If you want to provide more than a basic answer, then by all means do so as well. If you don't, that is okay too.

It has been difficult to find anyone willing to help me with this topic without just say, look at the SDK. And until I can find someone willing, I will keep asking. We're in a community, to help one another, not to point and say, 'Hey, don't you dare ask for some one-on-one help because he's not getting paid'. The thought never crossed my mind when being asked questions and answering them.
 
Therese,

I'm pretty sure that Paul took no offense whatsoever, and I'm sure he didn't
intend any. We do prefer to handle discussions publicly rather than in email
in most cases, though, generally because we like it that others can
contriubute to the discussions - like this one. ;-)
--
Ginny Caughey
..Net Compact Framework MVP

Therese said:
Paul,

You know, I really didn't need to be told that someone posting on this
board doesn't work for Microsoft and isn't getting paid. I post on other
boards, and help people myself, yet I don't get paid. People ask to talk to
me only, and that is fine, and I don't get paid. If he doesn't want to
asnwer me, that is also his perogative and that also is fine by me, too.
I tend to ask more detailed questions of those who don't just say 'Look at
the SDK'. If that offended you, I apologize. If you want to provide more
than a basic answer, then by all means do so as well. If you don't, that is
okay too.
It has been difficult to find anyone willing to help me with this topic
without just say, look at the SDK. And until I can find someone willing, I
will keep asking. We're in a community, to help one another, not to point
and say, 'Hey, don't you dare ask for some one-on-one help because he's not
getting paid'. The thought never crossed my mind when being asked questions
and answering them.
 
Hi,

I think the point is that questions asked (and answers offered) here benefit
many people, but email does not. Also, someone more knowledgeable/available
may be able to jump in, or offer some elaboration.

You are right, it is a community. The only way that it can be so is to keep
it "public."

Regards, Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
I don't have much to add to Ginny's and Dick's responses. Nothing that I
said would normally been interpreted as having taken offense. I simply
indicated what the right way to do things was and two very good reasons why.
The idea that any detailed discussion should be taken off-line is exactly
the opposite of the right way to build a useful community of this sort.

You asked a question, got a short answer (it's in the SDK, which is true),
posted a reply indicating that you weren't just trolling for information
that you could have found in the manual, got two more replies, one pointing
to a sample and one indicating how to make some progress by P/Invoking, as
well as indicating that work is on-going on an open source library to help
you. That doesn't seem like the right time to go off-line, especially on a
topic that is clearly up-and-coming like SMS.

Sorry my comment about not being paid annoyed you.

Paul T.

Therese said:
Paul,

You know, I really didn't need to be told that someone posting on this
board doesn't work for Microsoft and isn't getting paid. I post on other
boards, and help people myself, yet I don't get paid. People ask to talk to
me only, and that is fine, and I don't get paid. If he doesn't want to
asnwer me, that is also his perogative and that also is fine by me, too.
I tend to ask more detailed questions of those who don't just say 'Look at
the SDK'. If that offended you, I apologize. If you want to provide more
than a basic answer, then by all means do so as well. If you don't, that is
okay too.
It has been difficult to find anyone willing to help me with this topic
without just say, look at the SDK. And until I can find someone willing, I
will keep asking. We're in a community, to help one another, not to point
and say, 'Hey, don't you dare ask for some one-on-one help because he's not
getting paid'. The thought never crossed my mind when being asked questions
and answering them.
 
Back
Top