473,412 Members | 5,385 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,412 software developers and data experts.

Phone application and hardware buttons

Hi,

I am stuck with my first VB.Net and Compact Framework project (I come
from Delphi) and need a little help to get started

Requirements:
My Application has to replace the provider dependent phone application
on the MDA III and MDA Compact. At first it has to provide the basic
functionality, which shouldn't be too much:

- dial a number with the touchscreen
- catch incoming calls
- start the application when the green phone-button is pressed

Well, I am already stuck at the beginning:

a) Replacing cprog.exe
At first I tried to replace the original phone application with my
self-written program, but without success. I couldn't delete, rename or
replace the file. On the internet I found the information that the
cprog.exe lies in ROM and therefore can't be deleted.

b) Catching the phone buttons
The green and red phone buttans can't be catched via
Microsoft.WindowsCE.Forms.HardwareButton... After a few tries I found
out that they must be VK_F3 and VK_F4 - but the handling doesn't work
stable (cprog.exe is started even when I "eat" the event with
KeyEventArgs.Handled, sometimes the events arent sent etc.)
After searching the Internet for a long time I found references to the
function GetAsyncKeyState, but don't know how to implement it - I think
I need a working VB.Net example here.

c) Registry
In the registry, the cprog.exe is associated a few times, but when I
change a value (try to point to my application) it is ignored
A possible solution to my problems with a complete different approach is
mentioned by the user mamaich in a web forum:

http://forum.xda-developers.com/viewtopic.php?p=140351

Quote:
"As you know OS communicates with GSM device through a COM-port. It
sends normal AT-commands. You can hook the COM-port, parse ATDxxx and
modem's responces and hide unneeded commands."

This leads to my next problem:

d) Serial port
The following code lists the Com-ports 1-6 and 8-9, but it doesn't tell
me what port I can/must use:

For Each sp As String In System.IO.Ports.SerialPort.GetPortNames
CB_COMPORTS.Items.Add(sp)
Next

How can I detect *robust* of which type a Com-port is (Bluetooth,
virtual, Irda etc) and use it then? Is a .Close() followed by a .Open()
sufficient?
Sorry it's much text, but I hope that somebody of you can point me in
the right direction. Since, as I already mentioned, this is my first
VB.Net project I appreciate every piece of code.

-Jörg

PS: Sine I didn't know in which group I should write I did a rather big
crosspost - please set the appropriate follow-up
Nov 21 '05 #1
1 3210
Hi,

Check out open net cf they have made a open source project that
extends the compact framework which I think might help you.

http://www.opennetcf.org/CategoryVie...?category=Home

Ken
-------------------
"Jörg Schneider" <ng************@spamgourmet.com> wrote in message
news:18*******************************@40tude.net. ..
Hi,

I am stuck with my first VB.Net and Compact Framework project (I come
from Delphi) and need a little help to get started

Requirements:
My Application has to replace the provider dependent phone application
on the MDA III and MDA Compact. At first it has to provide the basic
functionality, which shouldn't be too much:

- dial a number with the touchscreen
- catch incoming calls
- start the application when the green phone-button is pressed

Well, I am already stuck at the beginning:

a) Replacing cprog.exe
At first I tried to replace the original phone application with my
self-written program, but without success. I couldn't delete, rename or
replace the file. On the internet I found the information that the
cprog.exe lies in ROM and therefore can't be deleted.

b) Catching the phone buttons
The green and red phone buttans can't be catched via
Microsoft.WindowsCE.Forms.HardwareButton... After a few tries I found
out that they must be VK_F3 and VK_F4 - but the handling doesn't work
stable (cprog.exe is started even when I "eat" the event with
KeyEventArgs.Handled, sometimes the events arent sent etc.)
After searching the Internet for a long time I found references to the
function GetAsyncKeyState, but don't know how to implement it - I think
I need a working VB.Net example here.

c) Registry
In the registry, the cprog.exe is associated a few times, but when I
change a value (try to point to my application) it is ignored
A possible solution to my problems with a complete different approach is
mentioned by the user mamaich in a web forum:

http://forum.xda-developers.com/viewtopic.php?p=140351

Quote:
"As you know OS communicates with GSM device through a COM-port. It
sends normal AT-commands. You can hook the COM-port, parse ATDxxx and
modem's responces and hide unneeded commands."

This leads to my next problem:

d) Serial port
The following code lists the Com-ports 1-6 and 8-9, but it doesn't tell
me what port I can/must use:

For Each sp As String In System.IO.Ports.SerialPort.GetPortNames
CB_COMPORTS.Items.Add(sp)
Next

How can I detect *robust* of which type a Com-port is (Bluetooth,
virtual, Irda etc) and use it then? Is a .Close() followed by a .Open()
sufficient?
Sorry it's much text, but I hope that somebody of you can point me in
the right direction. Since, as I already mentioned, this is my first
VB.Net project I appreciate every piece of code.

-Jörg

PS: Sine I didn't know in which group I should write I did a rather big
crosspost - please set the appropriate follow-up
Nov 21 '05 #2

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

Similar topics

2
by: deko | last post by:
The below code dials a phone number using C:\Program Files\Windows NT\dialer.exe. The problem is that dialing rules are ignored. MS Knowledge Base Article 266253 suggests that entering the phone...
3
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could...
2
by: Reny J Joseph Thuthikattu | last post by:
Hi, i want to create a phone dialer program to dial out to a phone number through my modem.Can any one help me out Reny --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus...
7
by: MuZZy | last post by:
Hi, We are developing a CRM (Customer Relations Management) module for our app and my boss wants to provide integration with PBX (phone systems used by lots of companies) so that if a user gets...
4
by: Sjef | last post by:
Is there information available about testing webpages on a mobile phone? Is there a test application? I searched on google but didn't find anything Thanxs, Sjef
9
by: Alex | last post by:
Get the Name and Phone Number of the Current Windows User in a .NET Application I am writing a simple .NET (C#) application. It needs to "automatic" get the Name (last, first) and phone number...
1
by: sewid | last post by:
Hi there! I've got a problem with no solution, I hope you might help me. I am writing a small tool with many buttons. Every button starts a thread and this thread starts something else, in the...
0
by: hennas | last post by:
Basically i want to design a membership Name and Telephone List form using the following command buttons. Edit Add New; Update; Delete; Cancel; Save; Clear, and Exit
0
by: Bubbs | last post by:
Hi, I want to develop a java app that can make pc to phone calls. I am aware of the JTAPI and have experience in using jmf. The thing is im not too sure as to how to begin this project. I have a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.