problem with how to lock keyboard and hold off the phone
i want to develop a ppc/sp aplication to anwser all the key down and up
messages .while others application can,t capture key events Tag: is there api for the appliction to hold off the phone call Tag: 116266
"\n\r" escape sequences not working. Please help.
Hi there, I pray someone could assist me on this since I find it rediculous I haven't gotten this working yet.
I'm working on a textbox in a Windows Mobile 5.0 app (with c#) which is set to be a multiline textbox.
I need to get text in the textbox to the next line but I can't get any escape sequences working. "\n\r" doesn't work. Environment.NewLine() doesn't exist in the .NET compact framework so I can't even use that, so how can I accomplish this?
Any help is greatly appreciated. Thank you!
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com Tag: is there api for the appliction to hold off the phone call Tag: 116261
Handle for FormatVolume API
Hello all,
Has anybody tried to format a SD card on WM 5.0 device progmatically??
I have used a simple sequence of API to do that and got success with WM
2003 SE but with WM 5.0 FormatVolume api calls returns with an invalid
handle.
System info: ArmV4I, WM5.0
API sequence:
1. OpenStore(L"DSK1:")
//I also tried "/Storage Card/VOL:" but it fails and I dont know why.
however DSK1: works.
2. GetStoreInfo - works fine
3. Dismounting Store -works fine
4. FormatStore - works fine
5. CreatePartition -works fine
6. OpenPartition -works fine
7. FormatPartition -works fine
8. FormatVolume -code fails here and reurns invalid handle
Please suggest me.
Thanks. Tag: is there api for the appliction to hold off the phone call Tag: 116260
Static controls in Dialog MFC Application
I have just recompiled an eVC++ 4.0 application using VS2005 with a
Windows Mobile 5.0 PocketPC as the target device.
I have noticed that whereas the dialog box displayed OK on my previous
target using eVC, using this new build system there are problems with
the static controls on both the target device and the emulator.
Having done some experiments with a simple dialog box, it would appear
that if there is more than one groupbox controls, one will either
display as a static text or not be seen at all; similarly you can have
problems with static text controls - one may not display at all or may
be displayed as a groupbox control.
This isn't the standard z-order problem; nothing is overlapped.
If I change all the IDC_STATIC control values to unique values (e.g.
IDC_STATIC_1, IDC_STATIC_2, etc.) the dialog then displays OK.
There appears to be one other link on the newsgroups similar to this:
http://groups.google.com/group/microsoft.public.pocketpc.developer/browse_frm/thread/cd322be8a7bfca8f/d05b938b75268644?lnk=st&q=&rnum=1#d05b938b75268644
Surely we shouldn't have to do this and there's some basic bug in
VS2005.
Andrew. Tag: is there api for the appliction to hold off the phone call Tag: 116252
verical menu
Hi
I have tried to use
aMenu = New MenuItem
aMenu.Text = "Hello"
mainMenu1.MenuItems.Add(aMenu)
to add menu.
However, it only works to create horizontal menu.
Do anyone of you know how to create vertical menu?
Thanks.
Regards,
JC Tag: is there api for the appliction to hold off the phone call Tag: 116251
How can I add new items in Contacts' Summary Card?
Is it possible to add (programatically) new items in the Summary Card (not
the menus)?
If yes, can someone help?
Thank you,
Tudor. Tag: is there api for the appliction to hold off the phone call Tag: 116250
Connection via ODBC across Wireless Network Connection - VB.NET
I am trying to connect to an ODBC datasource located on a network. I have a
PDA which has a wireless connection to the network, and I am looking for
examples, preferably in VB.NET, as to how to code the connection. I see
that there is commercial software out there that can do this, so it should
be able to be done, but I can't seem to find any pointers on the 'net via
Google about this. Note that the whole RDA to website to IIS is slightly
overkill for what I am trying to do. Does anyone have any pointers of
references that could help me?
--
Regards,
Michael Cole Tag: is there api for the appliction to hold off the phone call Tag: 116249
Program starts twice
Hello,
If I press the button 2 or 3 times, the application starts twice. Can anyone
give me a possibility to solve this problem.
Thank you Tag: is there api for the appliction to hold off the phone call Tag: 116247
MFC Dinamically Linked
Hi,
I'm devepoling and application for pocket pc (Windows Mobile 2003 se)
with Visual Studio 2005 (VC++). If I choose MFC Dinamically Linked what
files I need to include in the setup of the application for MFC ?
Thanks in adavance Tag: is there api for the appliction to hold off the phone call Tag: 116246
Downloading a CAB file
Does anyone know how to download a CAB file from the internet directly into a
Pocket PC using wi-fi? It seems that if you just tap on a link to a CAB file in
Pocket Internet Explorer, it just shows you to contents of the CAB file as if it
were a text file. There doesn't appear to be the equivalent of a right-click,
Save As...
Robert Scott
Ypsilanti, Michigan Tag: is there api for the appliction to hold off the phone call Tag: 116244
Widcomm Bluetooth Stack
I know this isn't the best forum for a Widcomm BT stack question, but here
it is any way:
Is it possible to turn the BT radio on/off from software? Seems like a
simple task, and with the MS stack, it is!!!, but I'm forced at this time to
use the Widcomm stack :(
Thanks,
John Tag: is there api for the appliction to hold off the phone call Tag: 116241
How to get BMP from CStatic Control?
I have the CStatic Control ID_BMP with a picture on it that has been enlarged
by coordinates specified by the User.
When the User clicks the Control again, I want to increase the zoom on the
BMP in the CStatic control using StretchBlt().
1. How do I select the image on the CStatic Control into my CBitmap variable?
2. Which parameters to StretchBlt() should be modified? Should the source
coordinates be shrunk or the destination coordinates be enlarged?
Thanks for your help. Tag: is there api for the appliction to hold off the phone call Tag: 116240
Is there a Chart Control or souce code available in Embedded VC++ version 4
This is a multi-part message in MIME format.
------=_NextPart_000_0023_01C6F10D.B8ADE1F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I need to display some data in a Bar chart format. I am using Embedded =
VC++ for development. Does any one know of a chart control that can do =
Bar Chart in Embedded VC ++?=20
If there is a tutorial or an example on how to do charts in Embedded =
VC++ ?=20
Thank you for your help in advance.=20
Shankar
------=_NextPart_000_0023_01C6F10D.B8ADE1F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3826.2400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<P>I need to display some data in a Bar chart format. I am using =
Embedded VC++=20
for development. Does any one know of a chart control that can do Bar =
Chart in=20
Embedded VC ++? </P>
<P>If there is a tutorial or an example on how to do charts in Embedded =
VC++=20
?</FONT><FONT face=3D"Times New Roman"> </P></FONT><FONT size=3D2>
<P><BR>Thank you for your help in advance.</FONT><FONT face=3D"Times New =
Roman">=20
</P></FONT><FONT size=3D2>
<P>Shankar</P></FONT></DIV></BODY></HTML>
------=_NextPart_000_0023_01C6F10D.B8ADE1F0-- Tag: is there api for the appliction to hold off the phone call Tag: 116236
Run application when power state changes
Is it possible to have Windows mobile to run an application when the user
power on/off (standby/resume) the device? Tag: is there api for the appliction to hold off the phone call Tag: 116232
Minimize app
Hi all,
I am developing an application for ppc and sp (WM 5.0). The UI part is in
MFC. Can someone tell me whow can i send the application in background or to
minimize it.
Thanks. Tag: is there api for the appliction to hold off the phone call Tag: 116231
problem with WaitForSingleObject on WM5
Hello,
I have a problem with WaitForSingleObject on Windows mobile 5.
I have a parent process in which I am creating child processes using
CreateProcess and I remember the child handle in the parent.
CreateProcess(programName, command, NULL, NULL, FALSE, 0, NULL, NULL,
&startupInfo, &processInfo);
I want to wait for child process shutdown, to make sure that all
resources are completely freed by the child. So before the child
process exit (ExitThread()), I am calling
WaitForSingleObject(childProcessHandle, INFINITE) on the parent
process. But interestingly I saw the WaitForSingleObject() hangs when
a child process exits. The hanged WaitForSingleObject() is seen to be
signaled I if launch a new child process from the parents (seems like a
timing issue).
Below is the code that I am using in parent process
DWORD result=0;
HANDLE handle;
handle = OpenProcess(SYNCHRONIZE, FALSE, contextID);
result = WaitForSingleObject(handle, INFINITE);
CloseHandle(handle);
The same piece of code is working finely with WM 2003 and WM 2003 SE.
Please let me know the reason for this platform difference. Also please
let me know if there is any other way to achieve my requirement.
Thanks,
Riju Reghunath Tag: is there api for the appliction to hold off the phone call Tag: 116226
VS2005 CAB file won't overwrite
I created a CAB file in VS2005 to install my application, but it won't
overwrite the app on the PDA if it already exists. The only way is for me to
manually erase the existing file and shortcut.
I used the instructions I found here:
www.devx.com/wireless/Article/31198
and it all works fine except for the reluctance to overwrite. As it's our
first version for WM5 I predict that once we release the app we'll have
quite a few updates so people will need to replace the existing program.
Any ideas appreciated.
TIA,
Mike. Tag: is there api for the appliction to hold off the phone call Tag: 116222
Wrapping C++ dll
I have a source code for a C++ dll.
dll/libmaster.dll : DLL with master core (MS VC++)
vb.net/* : Visual Basic .NET wrapper libray source and examples
Then I create a libmaster.net.dll . But when I add the libmaster.net.dll to
my code in visual studio it asks for libmaster.dll.
Do I need to Pinvoke or something?
--
Alberto Cardoso Tag: is there api for the appliction to hold off the phone call Tag: 116217
Timer event problem
Hi,
I have notices a strange behavior using both the System.Windows.Forms.Timer
and the System.Threading.Timer objects.
I have WM2003SE application developed on VS2005. This application contains a
timer, which is setup to expire exactly 1 mimute after it has been started
(60000 ms). If I run the application with the device connected to AC power
(cradled) every things works, that is I got the timer event right on time
( 1 min.). However if I run the application without the device connected to
AC power (uncradled) the timer expires after 1 minute and 14 seconds (sharp
every time). It doesn't matter if it is the debug or release version of the
application.
I am using a Qtek2020i (HTC) and have tried to run the device both in
standard mode and turbo mode (processor speed is adjustable). I have not
tried it on other devices, so I don't know if this issue is generic.
Does anyone have a clue what that can be ?
BR
Kim Würtz Tag: is there api for the appliction to hold off the phone call Tag: 116216
Ping from PocketPC
Hi all.
I have created a small utility for Windows Mobile 5.0 based Pocket PC.
The utility allows me to ping any host by sending an ICMP packet an
receiving a reply from the specified host.
For some reason when the device is connected to the internet through
ActiveSync a reply is not received from any host. The utility works as
expected when it is connected using WLAN or UMTS/GPRS connection.
I have tried using the emulator inside VisualStudio, but the same
happens here. I know that the device/emulator is connected to the
internet because I can access the web-page I am trying to ping through
Internet Explorer.
Anyone experienced the same problem? Ant suggestions?
Thank you
Espen Ekvang Tag: is there api for the appliction to hold off the phone call Tag: 116215
menu item
Hi.
In my VB code, I have created an entry in menuitem with the following code.
aMenu = New MenuItem
aMenu.Text = "Hello"
mainMenu1.MenuItems.Add(aMenu)
However, how can I handle a click event with the "aMenu"?
Thanks a lot
JC Tag: is there api for the appliction to hold off the phone call Tag: 116214
[ANN] Satellite Forms 7.0 RAD Tool for PalmOS and Windows Mobile Now Available!
October 16, 2006 (Lacombe, Canada)
Thacker Network Technologies Inc. is pleased to announce the release of
Satellite Forms 7.0, available now!
http://www.satelliteforms.net/
Satellite Forms is a visual integrated software development environment
(IDE) that makes it easy to create data-driven applications for Palm OS and
Pocket PC/Windows Mobile devices. Satellite Forms is an ideal tool for
business and enterprise developers looking to build custom mobile
applications, or to transform processes typically performed on paper to an
electronic format for improved productivity and efficiency.
Satellite Forms 7.0 introduces several exciting and powerful new features,
building on the previous 6.1.1 release. This includes the addition of new
control properties, new script language keywords, new extensions and sample
projects. Version 7.0 delivers improved database performance and
synchronization for the PocketPC platform, faster compiler speed in App
Designer, plus many more improvements.
Here's a quick look at some of the enhancements in the latest version of
Satellite Forms:
- PocketPC applications can now use the more efficient Palm DB (PDB) format
for handheld devices tables, in addition to Microsoft Compact Database (CDB)
format, for improved performance, rock solid synchronization, and 100% data
table compatibility between the PocketPC and PalmOS platforms.
- Satellite Forms applications can now utilize the expanded screens
available on some PalmOS devices such as the Palm Tungsten T3, T5,
LifeDrive, and TX.
- PalmOS applications can now support high density (hi res) bitmaps and
icons.
- The performance of the application compiler in App Designer has been
dramatically improved for complex applications that make extensive use of
global functions and subroutines, reducing compile times. One beta tester
reported an 18000% speed increase compared to SatForms 6.1!
- Several new extensions added for additional barcode scanner support, one
handed navigation, launching URLs, and more.
Build business-critical applications for the PalmOS and Windows Mobile
platforms with Satellite Forms 7.0!
If you have an earlier version of Satellite Forms, you can upgrade to
version 7.0 at a discounted cost (see the upgrades in our online store).
The full version of Satellite Forms 7.0 is available now in our secure
online store.
http://www.satelliteforms.net/cat9_1.htm
--
David Thacker
http://www.SatelliteForms.net
The Premier RAD Tool for PalmOS & PocketPC Tag: is there api for the appliction to hold off the phone call Tag: 116213
Wifi connection not recognised by PocketPC 2005.
We have an application that we developed initially for Pocket PC 2002
(Win Mobile 4.2). This application establishes an 802.11 association
when the device is in range of "special" access points. "Special"
basically means an AP is in a database of known APs that provide the
services the consumer is authorized to use. This is for a VoIP
application. This application works well on PPC 2002 and has for over 2
years over multiple devices in multiple countries.
After upgrading the app to support some of the nifty new features in
Win Mobile 5 (Pocket PC 2005), the application is still able to
establish a perfectly valid 802.11 association (valid IP address
included) but when the VoIP part of the application goes to make a
connection the device thinks that there is no available IP connection
and attempts to establish a GPRS connection. If the phone part of the
device is placed into flight mode, ie turning off the GSM radio, the
device then realizes there's an 802.11 connection and traffic is routed
over it. It is not feasible or acceptable for my application to do
this in a production environment (turn the phone off).
In our application, the 802.11 association is created with NDIS 5.1
OIDs though NDISUIO. WZC is disabled. With WZC enabled it is not
possible to control the 802.11 device, though NDISUIO or other such
NDIS interfaces. Our application cannot use Connection Manager because
a part of the necessary association process is to authenticate the
access point partly though its mac address and then a dynamic WEP key
must be used that is calculated based on various factors all of which
are irrelevant to this discussion not to mention extreeeeemy
proprietary.
Again, the association to the AP is perfectly valid and it works
perfectly when the GSM radio is disabled, I don't need any help on
associating with an AP. Since 802.11 associations created with WZC
work fine, ie the device doesn't think it needs to create a GPRS
connection, I'm assuming there's some IOCTL call that tells the system
there's an 802.11 connection (or some similar methods) that WZC uses.
Please, someone must know what the magic is here to make this all work!! Tag: is there api for the appliction to hold off the phone call Tag: 116211
How to call Activex destructor..?
Hi.
I use PocketPC 2003 SE
I have Visual Studio 2005
My ATL main class.
class TestATL{
...
char *p;
TestATL()
{
p = malloc(10000); <-- call
}
~TestATL() <-- not call
{
if(p!=NULL)
free(p);
}
}
Why don't call ~TestATL() function...T.T
I want destructor call.(HTML Page move time).
Thanks Tag: is there api for the appliction to hold off the phone call Tag: 116209
GetFullPath of storage card
How can I get the name of the Storage Card on the pocket PC?
When I create a specific directory on the storage card and do
GetFullpath("specific directory") I only get "\specific directory" as the
path and not someting like "Storage card\specific directory"
I want to save data on the storage card without knowing what the name is.
Hans Tag: is there api for the appliction to hold off the phone call Tag: 116205
C# to VB question
I am trying to write PocketPC installer for my .cab file in VB, using
site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/deploy_cf2_apps_cab_msi.asp
as a templet.
On this site the installer is written in C#, here is the code I am
struggling with:
RegistryKey keyActiveSync =
Registry.LocalMachine.OpenSubKey(ACTIVESYNC_INSTALL_PATH);
My question:
is in the VB defined object corresponding to RegistryKey?
Thanks,
Zalek Tag: is there api for the appliction to hold off the phone call Tag: 116202
assembly name 'Microsoft.WindowsMobile.Utilities ....was not found
I don't mean to cross-post, but I am in need of help here. I posted this on
the Smartphone Developer's forum with no responses and doing a search on both
forums showed that mine was the only post on this problem. I know that I
can't be the only one who has run upon this.
I am trying to create a Windows Mobile 5 Pocket PC Smartphone application
for the Palm Treo 700w and HP Smartphones with a 240x240 resolution. I am
trying to access some information in the Microsoft.WindowsMobile.Status
namespace and when I get to the line of code where the class is called, I
get the following exception:
File or assembly name 'Microsoft.WindowsMobile.Utilities, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35', or one of its
dependencies, was not found.
I have the exact same code running on Windows Mobile 5.0 Smartphone SDK and
there are no exceptions thrown when this class is called. This exception is
being thrown from the IDE during debug. If I comment out the lines that
reference this class, the app runs fine. The problem is - there is no
Microsoft.WindowsMobile.Utilities assembly to be found anywhere in the SDK.
In my researh, I have come to the conclusion that this namespace has
something to do with the SDK 2003, but it is no longer used in the WM 5 SDK,
so I can't figure out why this is crashing. I am past deadline on getting
this app out and this is the only thing that is stopping me from rolling out
the app.
I did a Google search on this and it came up with one hit to a blog entry
which didn't provide a solution. I also did a search on MSDN and came up
empty and Yahoo came up with several hits, but most were all pointing to the
same one I found on Google. The problem was discussed on a blog, but there
was never an answer or solution posted. Has anyone come across this exception
before and if so, what did you do to correct the problem? Tag: is there api for the appliction to hold off the phone call Tag: 116199
Is there any approach to invoke the windows bluetooth searching dialog
Is there any approach to invoke the windows bluetooth searching dialog?
Just like in Bluetooth->Pair Device->...
Any API to invoke the dialog? I remember that some windows dialog could be
used by user application.
Thanks.
leo Tag: is there api for the appliction to hold off the phone call Tag: 116193
Causing a warm reboot after a CAB installation
Hello,
I am trying to find the best if not only way to have a Windows CE 5.0 device
reboot after a CAB installation.
--
Thanks,
Todd Manchester
Chronicle Technologies Inc. Tag: is there api for the appliction to hold off the phone call Tag: 116189
Reading Bluetooth RSSI under Windows CE
Is it possible to read the bluetooth signal strength under Windows CE?
If yes, how?
thanks a lot,
Daniel Tag: is there api for the appliction to hold off the phone call Tag: 116186
Image in notification bubble
Hi,
I would like to have a notification bubble (SHNotificationAdd) with image
embedded inside the HTML body. This is not documented but possible since
system bubbles have image inside. I have tried with <img src=".."/> tag but
it fails. I also tried <object type="image/png"> without any success ...
Thanks for your help.
Frederic Tag: is there api for the appliction to hold off the phone call Tag: 116185
Closing forms in Load
All,
This may be a stupid question, but how can I load a form, perform some
action, and close the form? This is what I'm doing:
The user selects to export some data from a database. A form is displayed
with no "user action" controls (buttons,etc). The form has only labels on
it. The form1_Load() method does all of the processing and then calls
this.Close(). The form does not close. Is there something I'm doing wrong
here? How do I get it to close when I'm done? Do I need to put my code in a
different place?
Thanks in advance.
Kevin Tag: is there api for the appliction to hold off the phone call Tag: 116183
linking problem with Strmbase.lib
Hi,
I have been trying to extend CBaseWindow from winutil.h. Now I have
problem with strmbase link error.
How to resolve this particular error ?
error says.
Linking...
Strmbase.lib(dllentry.obj) : error LNK2001: unresolved external symbol "int
g_cTemplates" (?g_cTemplates@@3HA)
Strmbase.lib(dllentry.obj) : error LNK2001: unresolved external symbol
"class CFactoryTemplate * g_Templates"
(?g_Templates@@3PAVCFactoryTemplate@@A)
Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug/Wrapper.exe : fatal error
LNK1120: 2 unresolved externals Tag: is there api for the appliction to hold off the phone call Tag: 116182
GetSystemPowerStatusEx2() Problem
Hi all,
I am developing an application which can read the power status of power pc.
Here is my code:
BOOL ReadResult;
ReadResult = GetSystemPowerStatusEx2(pSystemPowerStatusEx2, dwLen, TRUE);
if (ReadResult == TRUE)
m_Button_Battery.SetWindowText(_T("TURE"));
else if (ReadResult == FALSE)
m_Button_Battery.SetWindowText(_T("FALSE"));
It always return False to me, on my 2 Pocket PCs. So, I cannot get any
information from my PPC. What is the problem of my code? Tag: is there api for the appliction to hold off the phone call Tag: 116175
DirectDraw still cover start menu
I use Mobile 5.0 device to develop DirectDraw program.
There is one problem need your help, that is when my program drawing
content and user click "Start" menu, the menu presentation will dirty by
my program, but still can click those dirty menu items.
But if click others SIP icon, such like volume adjustment, there is no such
problem. Volume adjustment window can present well and my program
also continue drawing under volume adjustment window.
Here is the brief of my direct draw flow char:
1. Call DirectDrawCreate() to create direct draw object
2. Call SetCooperativeLevel() with DDSCL_NORMAL
3. Create Primary DDS object
4. Create Offscreen DDS object
5. Call CreateClipper() to create DDClipper object
6. Call SetHWnd() of DDClipper object
7. Call Primary DDS's SetClipper() to associate above DDClipper object
8. When render, call pDDSPrimary->Blt(..., pDDSOffScreen,.....)
What still should I do to let start menu don't dirtied by my program, just
like
volume adjustment window?
Thanks for your help!!
Best regards,
Omega Tag: is there api for the appliction to hold off the phone call Tag: 116173
Power Status of Pocket PC
Hi all,
I found some problem in using the GetSystemPowerStatusEx2() function in
Pocket PC. I am developing an application to detect the battery level of PPC.
Below is some of my code:
GetSystemPowerStatusEx2(pSystemPowerStatusEx2, dwLen, TRUE);
if ((pSystemPowerStatusEx2->BatteryLifePercent >90) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 100))
m_Button_Battery.SetWindowText(_T("70-80%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >80) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 90))
m_Button_Battery.SetWindowText(_T("20-30%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >70) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 80))
m_Button_Battery.SetWindowText(_T("20-30%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >60) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 70))
m_Button_Battery.SetWindowText(_T("60-70%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >50) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 60))
m_Button_Battery.SetWindowText(_T("50-60%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >40) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 50))
m_Button_Battery.SetWindowText(_T("40-50%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >30) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 40))
m_Button_Battery.SetWindowText(_T("30-40%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >20) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 30))
m_Button_Battery.SetWindowText(_T("20-30%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >10) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 20))
m_Button_Battery.SetWindowText(_T("10-20%"));
else if ((pSystemPowerStatusEx2->BatteryLifePercent >0) &&
(pSystemPowerStatusEx2->BatteryLifePercent <= 10))
m_Button_Battery.SetWindowText(_T("0-10%"));
else if (pSystemPowerStatusEx2->BatteryLifePercent == 255)
m_Button_Battery.SetWindowText(_T("UNKNOWN"));
However, I cannot get anything from the button. Could any one told me how to
use the GetSystemPowerStatusEx2() function? Thank a lot. Tag: is there api for the appliction to hold off the phone call Tag: 116172
Today Plugin Scrollbar
Hello
I have this problem: i'm creating a Today Plugin for Windows Mobile
2005 using Win32 API Visual C and i'm having dificulties with the
ScrollBar that appears when passing from Portrait->Landscape->Portrait.
I'm using
GetWindowRect(GetParent(GetParent(GetParent(PluginWindowHandle))), &rT)
but it looks like the scroll appears on top of the PocketPC desktop.
WM_SIZE message in my plug-in doesn't help either. How can i find out
if the ScrollBar is present?
Regards,
GM Tag: is there api for the appliction to hold off the phone call Tag: 116171
debugging?
Hi All
I am sure this is a stupid question, but I cannot seem to figure it
out.
I have MS's eMbedded Visual C++ and the Standard_SDK installed. I am
using an iPaq 6915. I can compile a program and run it on the Emulator.
Changing the CPU and manually copying the file to the ipaq, it will
also run. But I need to debug the program on the ipaq, and this is
where I am struggling.
In Platform Manager I can add a device under 'Windows CE Default
Platform' and select active sync. The test is OK. But how do I till
vc++ to use this device. The 'Set Default device' does not show this
new device, it only shows the options that are added under STANDARDSDK
in the Platform manager, and they do not seem to offer active sync
options.
How do I select an active sync device? Am I on the wrong track
altogether?
Help will be very appreciated.
Warren Tag: is there api for the appliction to hold off the phone call Tag: 116170
Can I disable standy of PocketPC in my Application?
Hi,
I've written an application (.NET Compact Framework 1.1) for Windows
Mobile 5, but I would like my PocketPC doesn't go in standby when
application is working, without removing standby time for other
applications. Can anyone help me?
Thank you! Tag: is there api for the appliction to hold off the phone call Tag: 116169
Playing the audio file to the Active Call..
Hi,
I have written an application which notifies me when the voice call is
connected .When I try to play
the wav file at that moment it does not play it simply waits .But
when the call gets disconnected.that audio file is played.
Any help will be appreciated .
--Chintan Tag: is there api for the appliction to hold off the phone call Tag: 116166
Playing the audio file to the Active Call..
Hi,
I have written an application which notifies me when the voice call is
connected .When I try to play
the wav file at that moment it does not play it simply waits .But
when the call gets disconnected.that audio file is played.
Any help will be appreciated .
--Chintan Tag: is there api for the appliction to hold off the phone call Tag: 116165
www.dvidearts.com- Angel Sword
Check out the new awesome RPG and download free wallpapers at
www.dvidearts.com Tag: is there api for the appliction to hold off the phone call Tag: 116164
SMS intercept
Hi all,
I need to develop an application which intercept incoming/outgoing SMS,
but on WM5, i only can get incomming SMS, seem there's no way to catch
outgoing message. Any solution?
Thank you very much for any suggestion. Tag: is there api for the appliction to hold off the phone call Tag: 116160
PocketPC models, dates, OS versions
I need a resource that shows various PocketPC models , approximate dates of
introduction and discontinuation , and OS name and version.
Does such a best exist ? Tag: is there api for the appliction to hold off the phone call Tag: 116159
Running External Applications in C#
I have a situation where I need to check if an application is running, and
if not, run it.
I saw how I could do this using the Process class. However, I'm using CF
1.1 and Process is only in 2.0.
Is there some way I can tell if a program is running and to launch an
application? Here is what I'm doing:
I'm using an Intermec device. The user is running a C# (CF 1.1)
application. The application has a timer that checks every second to see if
the device is docked. If it is docked, I need to run 2 applications
(MipService and QDataComm, in that order). These applications will run
until the device is undocked. When it is undocked, I need to shutdown these
applications.
I'll keep looking on the Internet for a solution. If anyone knows of a way
to do this, please let me know. I need this soon.
Thanks a bunch!
Kevin Tag: is there api for the appliction to hold off the phone call Tag: 116157
How can call for a resync from within the desktop service provider?
I figured out how to get a mutual addition to work, but ActiveSync ends
up in an unsynchronized state with the message "1 item not
synchronized." I'd like to automate the synchronization so that my
mutual add sync works seamlessly (even if not efficiently). How can I
inform the service manager to reattempt synchronization from the
desktop service provider (preferably at the end of the first round of
synchronization)?
Also, how can I access the object store enumeration? I've seen a post
about uParam for certain ReportStatus() events, but it's always NULL. Tag: is there api for the appliction to hold off the phone call Tag: 116156
non-windows devices and irda
hi,
my problem is connecting to non-windows device (midtronics.com) which
can export data via irda.
standard .net library has its methods to realize transfering data with
different devices when you can use DeviceDiscovery() method to init
connection between device and windows soft
(http://msdn2.microsoft.com/en-us/library/system.net.sockets.irdaclient(VS.80).aspx)
The device does not init connection just export data. and I have
problem, I don't know how to realize server - side windows (esp.
windows mobile) program to listen data without assign IrDAClient.
Help! Tag: is there api for the appliction to hold off the phone call Tag: 116155
hello .everyone :
i want to call the APIS to answer the phone automatically or just hold
off the phone. your kind help will be preciated