Hi guys. I'm totally new to this platform (previously on UIQ + Symbian). I
have a few burnin questions and I hope this is the right ng to ask them (my
apologies otherwise!)... My first priority is to code using C# on .NETCF v2
(WM5) so any answers in that platform would be greatly appreciated. However,
I am aware there are limitations and I'm willing to explore a C++ dll that I
can call from managed code for other functionality. So here goes:

1. As I understand it, the OS or .netcf can terminate the app when the
system is running low on memory. This is similar to Symbian. However, in
Symbian, I could trap a certain exit message posted into my app and decide
how I want to handle it. One of the ways of handling it is to prevent my app
from terminating (in some scenarios, I want this to happen). Is there a
similar fashion to achieve this?

2. On the Dopod 900 device, you can close the flip screen. Is there a
general mechanism I can setup to watch for messages and see what message
gets posted when this happens? I want my app to do certain things when the
flip is closed.

3. How do I read resource strings from my resource file?? :(

4. How do I forcefully terminate a phone call?

5. Is there an alarm server available in PocketPC that I can use? E.g. I can
post an alarm into the alarm server that says "Expire the alarm at 10:15pm
with the following ring tone. Identify my alarm with a GUID number that only
my app will recognize so that it won't show up in other apps like Calendar,
Clock, Tasks etc."

Code snippets would be helpful. :( I'm still struggling with things (only 1
into this!) but I can surely tell you that the learning curve on this
platform esp on .NETCF v2 is much easier than Symbian's C++.

Thanks.

Re: new to .netcf2 and ppc dev by droll

droll
Mon Nov 21 04:36:11 CST 2005

i found the answer to #3. so simple but so confusing reading all the samples
i found in google. finally settled with : Resources.Resources.<resource
identifier>



Re: new to .netcf2 and ppc dev by Peter

Peter
Mon Nov 21 05:16:47 CST 2005

Hi,

1. The system will first attempt to close your app by sending it's main
window a WM_CLOSE message - this will fire the close event on your form
which you can override - see this example:-
http://www.peterfoot.net/OpenAllHours.aspx

2. This depends on the OEM - Microsoft have define a key code VK_TFLIP which
is equal to F17. But not all devices expose this action. So long as your
device has .NETCF SP2 or higher you can capture keyboard messages in your
form - override OnKeyDown and act on this specific key.

4. You would need to use TAPI to do this, on a Smartphone device this may
require your app to be signed. Alex Feinman has written an excellent TAPI
.NET wrapper - you should find more details on a search of the archive of
this newsgroup e.g. via groups.google.com

5. There are a set of notification APIs in Windows CE which allow you to run
an application at a specific time in the future (or simply display an alert
or play a sound). In order to use them from .NETCF you need to P/Invoke e.g.
CeRunAppAtEvent or CeSetUserNotificationEx. These are wrapped within the
SDF - www.opennetcf.org/sdf/ in the OpenNETCF.Win32.Notify namespace
Paul Tobey has written a sample app using this in the vault:-
http://vault.netcf.tv/VaultService/VaultWeb/login.aspx
(Username: guest Password:guest)
Browse to $/Samples/Notification

Peter

--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com

"droll" <droll@invalid.com> wrote in message
news:uITQ$$n7FHA.3976@TK2MSFTNGP15.phx.gbl...
> Hi guys. I'm totally new to this platform (previously on UIQ + Symbian). I
> have a few burnin questions and I hope this is the right ng to ask them
> (my apologies otherwise!)... My first priority is to code using C# on
> .NETCF v2 (WM5) so any answers in that platform would be greatly
> appreciated. However, I am aware there are limitations and I'm willing to
> explore a C++ dll that I can call from managed code for other
> functionality. So here goes:
>
> 1. As I understand it, the OS or .netcf can terminate the app when the
> system is running low on memory. This is similar to Symbian. However, in
> Symbian, I could trap a certain exit message posted into my app and decide
> how I want to handle it. One of the ways of handling it is to prevent my
> app from terminating (in some scenarios, I want this to happen). Is there
> a similar fashion to achieve this?
>
> 2. On the Dopod 900 device, you can close the flip screen. Is there a
> general mechanism I can setup to watch for messages and see what message
> gets posted when this happens? I want my app to do certain things when the
> flip is closed.
>
> 3. How do I read resource strings from my resource file?? :(
>
> 4. How do I forcefully terminate a phone call?
>
> 5. Is there an alarm server available in PocketPC that I can use? E.g. I
> can post an alarm into the alarm server that says "Expire the alarm at
> 10:15pm with the following ring tone. Identify my alarm with a GUID number
> that only my app will recognize so that it won't show up in other apps
> like Calendar, Clock, Tasks etc."
>
> Code snippets would be helpful. :( I'm still struggling with things (only
> 1 into this!) but I can surely tell you that the learning curve on this
> platform esp on .NETCF v2 is much easier than Symbian's C++.
>
> Thanks.
>



Re: new to .netcf2 and ppc dev by droll

droll
Mon Nov 21 08:24:47 CST 2005

thank you, thank you!! :)



Re: new to .netcf2 and ppc dev by droll

droll
Mon Nov 21 23:01:50 CST 2005

i tried installing SDFSetup14.msi on my machine and it keeps bombing with
"Object reference not set to an instance of an object". it then starts
rolling back the installation.

??!?!?!? i have VS.Net2005 with WM5 PPC SDK installed. what could be wrong?



Re: new to .netcf2 and ppc dev by droll

droll
Mon Nov 21 23:06:33 CST 2005

arrrrghhhhhh silly me :( :( sorry for wasting bandwidth. :( i just found out
it's because there's no official support for vs.net2005 yet. sorry.



Re: new to .netcf2 and ppc dev by ctacke/>

ctacke/>
Mon Nov 21 23:03:32 CST 2005

The desktop install for SDF 1.x is only supportedon Studio 2003. The code
is all CF 2.0 compatible.

-Chris


"droll" <droll@invalid.com> wrote in message
news:eD%23vZHy7FHA.2540@TK2MSFTNGP10.phx.gbl...
>i tried installing SDFSetup14.msi on my machine and it keeps bombing with
>"Object reference not set to an instance of an object". it then starts
>rolling back the installation.
>
> ??!?!?!? i have VS.Net2005 with WM5 PPC SDK installed. what could be
> wrong?
>