473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

(proverbially) Throwing Myself to the C# Wolves

I'm a college student, starting my first "for-real" C# application. I've
read a bajillion books on what to do and what not to do, practiced all the
code snippets from here to kingdom come, and written dozens of smaller
prototypical applications, and done some basic stuff for people on
Rent-A-Coder. I think I'm ready for something I can sink my teeth into now.

The purpose of this first application is very simple. As a college student,
I have lots of trouble waking up at the appropriate hour without some
encouragement from an alarm clock. Recently, my old trusty alarm clock (the
kind you have to wind) broke, and I've been faced with the dilemma of
whether or not to buy a new shiny digital one for the upcoming semester,
where the prospect of 8:00 AM classes returns to haunt me.

However, as a computer-science major, I also feel compelled to come up with
an executable solution (i.e., write a program) rather than a commercial one
(i.e., buy a new clock). Since my computer sits in a different room in my
apartment than my bedroom, I thought it'd be clever to use the modem line
from my computer to make a call to my apartment line, and then, on pickup,
blast an eardrum-shattering *.wav file. That would certainly wake me up.

Unfortunately, this now seems a little too ambitious for a first project. I
can't seem to find anything along the lines of a "phone API", if that even
exists. There's some documentation in MSDN for the PocketPC phone API, but
that's unnecessarily complicated. Any suggestions, pointers, or snippets to
get me started in the right direction? Thanks!

- Kyle S.

( Please use forums to reply! )
Nov 13 '05 #1
5 2212
Kyle, there is nothing built in to the Framework around telephony. You
aren't out of luck though. You can use Interop to wrap the telephony API's
installed on all (?) windows desktops.

Here's a sample app that does some of what you are looking to do and should
get you started.
http://www.c-sharpcorner.com/Code/20...oJobSearch.asp

--
Greg Ewing [MVP]
http://www.claritycon.com/
"Kyle Silvers" <z@z.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
I'm a college student, starting my first "for-real" C# application. I've
read a bajillion books on what to do and what not to do, practiced all the
code snippets from here to kingdom come, and written dozens of smaller
prototypical applications, and done some basic stuff for people on
Rent-A-Coder. I think I'm ready for something I can sink my teeth into now.
The purpose of this first application is very simple. As a college student, I have lots of trouble waking up at the appropriate hour without some
encouragement from an alarm clock. Recently, my old trusty alarm clock (the kind you have to wind) broke, and I've been faced with the dilemma of
whether or not to buy a new shiny digital one for the upcoming semester,
where the prospect of 8:00 AM classes returns to haunt me.

However, as a computer-science major, I also feel compelled to come up with an executable solution (i.e., write a program) rather than a commercial one (i.e., buy a new clock). Since my computer sits in a different room in my
apartment than my bedroom, I thought it'd be clever to use the modem line
from my computer to make a call to my apartment line, and then, on pickup,
blast an eardrum-shattering *.wav file. That would certainly wake me up.

Unfortunately, this now seems a little too ambitious for a first project. I can't seem to find anything along the lines of a "phone API", if that even
exists. There's some documentation in MSDN for the PocketPC phone API, but
that's unnecessarily complicated. Any suggestions, pointers, or snippets to get me started in the right direction? Thanks!

- Kyle S.

( Please use forums to reply! )

Nov 13 '05 #2
Kyle,

Like Greg said, there is a telephony API. I am curious though, won't
this only work if you have two separate lines? One for your computer, and
one for the phone you will be called on?
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Kyle Silvers" <z@z.com> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
I'm a college student, starting my first "for-real" C# application. I've
read a bajillion books on what to do and what not to do, practiced all the
code snippets from here to kingdom come, and written dozens of smaller
prototypical applications, and done some basic stuff for people on
Rent-A-Coder. I think I'm ready for something I can sink my teeth into now.
The purpose of this first application is very simple. As a college student, I have lots of trouble waking up at the appropriate hour without some
encouragement from an alarm clock. Recently, my old trusty alarm clock (the kind you have to wind) broke, and I've been faced with the dilemma of
whether or not to buy a new shiny digital one for the upcoming semester,
where the prospect of 8:00 AM classes returns to haunt me.

However, as a computer-science major, I also feel compelled to come up with an executable solution (i.e., write a program) rather than a commercial one (i.e., buy a new clock). Since my computer sits in a different room in my
apartment than my bedroom, I thought it'd be clever to use the modem line
from my computer to make a call to my apartment line, and then, on pickup,
blast an eardrum-shattering *.wav file. That would certainly wake me up.

Unfortunately, this now seems a little too ambitious for a first project. I can't seem to find anything along the lines of a "phone API", if that even
exists. There's some documentation in MSDN for the PocketPC phone API, but
that's unnecessarily complicated. Any suggestions, pointers, or snippets to get me started in the right direction? Thanks!

- Kyle S.

( Please use forums to reply! )

Nov 13 '05 #3
Wow! That link is just what I was looking for - thanks Greg. Now for a
weekend of coding and hitting up the TAPI documentation! If I actually get
this working, I'll be sure to pass along a link to the app so you forum
peeps can try it out for yourself. =)

Happily engaged for the next several days,
Kyle S.
Nov 13 '05 #4
Note that your modem must be a voice modem and must support the wave API to
play correctly. You'll very likely want to talk to the
microsoft.public.win32.programmer.tapi group for details on all of that,
before you get too much further.

Also, unless your dorm phone system happens to be a good pbx system, it's
very likely that your modem won't know when you answer the phone. Again,
details on that on the tapi group.

Good luck!

--
Reginald Blue
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone."
- Bjarne Stroustrup (originator of C++) [quoted at the 2003
International Conference on Intelligent User Interfaces]

Kyle Silvers wrote:
Wow! That link is just what I was looking for - thanks Greg. Now for a
weekend of coding and hitting up the TAPI documentation! If I
actually get this working, I'll be sure to pass along a link to the
app so you forum peeps can try it out for yourself. =)

Nov 13 '05 #5
Great plan, but a new clock costs under $10!

Why not have the computer dial your phone number every 5 min until you
turn the program off? This should be a simpler way to approach the
issue.


On Fri, 11 Jul 2003 12:35:00 -0400, "Kyle Silvers" <z@z.com> wrote:
I'm a college student, starting my first "for-real" C# application. I've
read a bajillion books on what to do and what not to do, practiced all the
code snippets from here to kingdom come, and written dozens of smaller
prototypical applications, and done some basic stuff for people on
Rent-A-Coder. I think I'm ready for something I can sink my teeth into now.


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation...
2
by: SK | last post by:
What is the purpose of throwing exceptions in catch block. Bcos the exception is already thrown only, it is coming to the catch block.What is the purpose of throwing it again then!!!.....Help
4
by: Eric Lilja | last post by:
Hello, in my program I have a function (pseudo code): void start_mysql_service() { obtain handle start mysql service using handle if start fails close handle and throw an exception...
21
by: mihai | last post by:
People say that is a bad technique to throw exception from constructors; and that the solution would be to create a function _create_ to initialize an object. What about copy constructors? How...
40
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
13
by: Jacek Dziedzic | last post by:
Hi! <OT, background> I am in a situation where I use two compilers from different vendors to compile my program. It seems that recently, due to a misconfiguration, library conflict or my...
15
by: Sek | last post by:
Gurus, I am wondering whether it is right to throw an exception from a Property of an object. To get into it further, is it okay to throw exception during 'get' operation? I was searching...
40
by: Sek | last post by:
Is it appropriate to throw exception from a constructor? Thats the only way i could think of to denote the failure of constructor, wherein i am invoking couple of other classes to initialise the...
6
by: Marvin Barley | last post by:
I have a class that throws exceptions in new initializer, and a static array of objects of this type. When something is wrong in initialization, CGI program crashes miserably. Debugging shows...
21
by: Chris M. Thomasson | last post by:
Is it every appropriate to throw in a dtor? I am thinking about a simple example of a wrapper around a POSIX file... ________________________________________________________________________ class...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.