473,810 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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 2220
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******** ******@TK2MSFTN GP11.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************* *@exisconsultin g.com

"Kyle Silvers" <z@z.com> wrote in message
news:Ot******** ******@TK2MSFTN GP11.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.publi c.win32.program mer.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
3241
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 (xml->html) doen't happen! I have XSLT files for this, they work, I mean when I put the output of the app as an XML file on some server, and make it use the XSLT files to transform into HTML, it works, I get a HTML page.
2
1516
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
1986
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 containing error description
21
4446
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 can we avoid throwing exceptions? If we already have an abject witch was initialized wit _create_ we will be forced to call create in copy constructor and to throw exceptions from it. Have a nice day,
40
13544
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
13
2069
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 ignorance, with one of the compilers I am having trouble related to libuwind.so, which, to my knowledge, deals with the intricacies of unwinding the stack upon an exception. Executables compiled with this compiler crash with a SEGV after throw(), never...
15
3256
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 for MS articles on throwing exceptions. But, in vain.
40
36118
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 object. TIA Sek
6
3571
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 uncaught exception. How to catch an exception that happened before main() try { ... } catch (...) { ... } block? Is there a way?
21
1727
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 file { FILE* m_handle; public: // ; ~file() /* throw() */ {
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10393
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.