handle all events from SIP or tap
Hello, do you now how handle in one procedure (written in c#) any key
pressing and all screen's tapping ? I'd like count in my program user's
inactivity.
Regards,
Marian Tag: checking the network connection type Tag: 112555
Required software for PocketPC Application
I am new to pocket pc application development. Can any one suggest me what
are all the softwares required to develope pocket pc application development
in Visual studio 2003 and the WinCE emulator 4.2
With thanx,
Ragu Tag: checking the network connection type Tag: 112554
Software nees
I am new to pocket pc application development. Can any one suggest me what
are all the softwares required to develope pocket pc application development
in Visual studio 2003 and the WinCE emulator 4.2
With thanx,
Ragu Tag: checking the network connection type Tag: 112553
treo700w and Gapidraw lib
Does anyone else expereinced this problem? several of our games using
gapidraw do start up but userinput does not work(screentap doesn't work)
Beign located in Europa I have no acces to a device so it's quit hard to try
and test it Tag: checking the network connection type Tag: 112552
IItem::GetProps() not returning POOM item properties
Based on the documentation for GetProps() at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5lrfIItemGetProps.asp
I tried retrieving item properties both ways and either way, HRESULT
comes back successful but no values are retrieved:
// Allocate memory, then get item properties
// >>this always returns cbBuffer == 0 on 2nd GetProps() call
cbBuffer = 0;
hr = pItem->GetProps(rgPropId, 0, cProps, &prgPropvalUser,
&cbBuffer, NULL);
if(HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) == hr)
{
prgPropvalUser = (CEPROPVAL *) LocalAlloc(0, cbBuffer);
}
// cbBuffer is set to the number of bytes required to hold the
data.
hr = pItem->GetProps(rgPropId, 0, cProps, (CEPROPVAL
**)&prgPropvalUser, &cbBuffer, NULL);
if(FAILED(hr) || 0 == cbBuffer)
{
goto Exit;
}
// Alternately, you can let Outlook Mobile allocate memory, then get
item properties.
//>>this consistently returns 0 in prgPropvalPoom and cbBuffer
cbBuffer = 0;
hr = pItem->GetProps(rgPropId, CEDB_ALLOWREALLOC, cProps,
&prgPropvalPoom, &cbBuffer, hHeap);
wsprintf(buffer, TEXT("%ld = pItem->GetProps() - 3; 0x%X, 0x%X"), hr,
prgPropvalPoom, cbBuffer);
MessageBox(hwndParent, buffer, L"Debuggery", MB_OK);
if(FAILED(hr) || NULL == prgPropvalPoom || 0 == cbBuffer)
{
... Tag: checking the network connection type Tag: 112548
AVOID Pocketgear and Makyama
Pocketgear once again proves they are Con artists and liars. They will
NEVER supply a refund on defective products.
Mitch
--
"Don't pee an my leg then tell me it's raining" Tag: checking the network connection type Tag: 112547
What are the differences from CE4.2 to CE4.2 SE and CE 5.0
Wrote an application in CE 4.2. Application works as written. Tried to
execute the same application in both CE 4.2 SE and CE 5.0. The application
will not run. Gut feeling is that it is a memory issue. I am looking for
some information about the changes from CE 4.2 to CE 5.0 to help start the
trouble shooting process. Thanks Tag: checking the network connection type Tag: 112546
Best API for SQL CE and C++ / MFC
What is the best API to use for creating database applications using SQL CE
and C++ / MFC? Whats the best in terms of performance? What would be the
easiest to use / code? What are all of the choices? Thanks.
Timothy Dean Tag: checking the network connection type Tag: 112543
Registry settings for Device menu options.
Hi all,
I know I can disable (until a hard-reset is performed) the Items that
appear in the today section (homepage of the device)
'Start->Settings->Today->Items(tab)', and also Main menu and 'New' menu
option in 'Start->Settings->Menus->Start Menu (tab), and New Menu
(Tab).
To disable these everytime a device is hard-reset is a pain in the butt
:), so would like to have a reg file that could be run on the device to
disable these menu settings in one go after the device is hard-reset.
Does anyone know where in the registry these settings may reside?
Thanks
Tryst Tag: checking the network connection type Tag: 112542
Windows Mobile for Automotive SDK or Resource Kit
I'm looking for some technical infos about WMfA.
I've read this:
http://download.microsoft.com/download/8/5/7/857685fa-85a6-4366-bd71-c8aaf446e657/WMfApaper.doc
and I've read this:
"Finally, WMfA includes the following development resources:
- Software Development Kit for third-party application development
- Automotive Adoption Kit to implement hardware changes or low level device
drivers
- Extension of Platform Builder debug interface to access system variables
and tracing
- Tools to configure CAN signal layer and speech optimization
- Tools for compliance testing and verification
- Documentation and training"
Where can I found any of these? Tag: checking the network connection type Tag: 112541
EMAIL2 : configuring EMAIL2 account with Configuration Service Provider, polling problem (LINGER parameter)
Hello we are experiencing a problem with our Pocket PC App :
The app is actually designed to work on a Qtel9100
We want ton configure Pocket Outlook with a 30min polling for an
account we are creating in the app, like this :
public bool doOutlookConfiguration(EmailApplication ea)
{
try
{
String wszAccountXml = "<wap-provisioningdoc>"
+ " <characteristic type=\"EMAIL2\">"
+ " <characteristic
type=\"{DC88846A-11D3-444d-A8DD-00A15086346E}\">"
+ " <parm name=\"CONNECTIONID\"
value=\"{C1D06580-B364-45ec-8421-5ACF34129C58}\"/>"
+ " <parm name=\"SERVICENAME\" value='" +
ea.getEmailBoxName() + "' />"
+ " <parm name=\"SERVICETYPE\"
value=\"POP3\"/>"
+ " <parm name=\"INSERVER\" value='" +
ea.getInServer() + "' />"
+ " <parm name=\"OUTSERVER\" value='" +
ea.getOutServer() + "' />"
+ " <parm name=\"AUTHNAME\" value='" +
ea.getAuthenticationName() + "' />"
+ " <parm name=\"AUTHSECRET\" value='" +
ea.getAuthenticationPassword() + "' />"
+ " <parm name=\"DOMAIN\" value='" +
ea.getEmailDomain() + "' />"
+ " <parm name=\"REPLYADDR\" value='" +
ea.getReplyAddress() + "' />"
+ " <parm name=\"LINGER\"
value=\"30\"/>"
+ " <parm name=\"KEEPMAX\" value='-1'
/>"
+ " <parm name=\"DWNDAY\" value='-1'
/>"
+ " <parm name=\"AUTHREQUIRED\" value='1' />"
+ " <parm name=\"RETRIEVE\" value='-1'
/>"
+ " </characteristic>"
+ " </characteristic>"
+ "</wap-provisioningdoc>";
ConfigWrapper.ProcessXml(wszAccountXml,
ConfigFlag.Process);
return true;
}
catch (Exception exp)
{
...
}
}
Everything looks fine (i.e, the parameters are flushed, we can list
them ...).
In the account property page, we see the good values : send /receive
every 30 mins, checkbox checked.
The problem is the application never goes to check and send mails, it
never connects.
The only way to make it work is to go in the account's property page,
leave all the parameters, tap next, next, next, OK, and then, outlook
starts polling.
Currently, we try to save the registry :
- before editing the property page
- after editing the registry page
We will try to make a 'diff' on these two dumps to see any key
difference between them.
We want to resolve this problem, so if anybody has a clue for us, it
would be greatly appreciated.
Thx in advance
Frederic Bertin Tag: checking the network connection type Tag: 112540
Porting WIN32 App to CE.
Hi All,
We currently have a client-server application written in Win32 and we're in
the process of trying to create a slimmed down version of the client
software for the Pocket PC. Our application is a fair size, and uses a few
in-house developed DLLs for drawing areas etc. We want to be able to use
code contained in these .DLLs on our Pocket PC app to avoid multiple copies
of the same code in two projects. We're using VS2003.NET for the Win32
development, and eVC 4.0 for the PPC stuff.
Has anyone been in these shoes before? How have they solved the problem?
I thought of creating a similar .DLL in my PPC application, and actually
link in the sources files from the original.DLL while adding #ifdefs to the
.DLL to include functions that I require, then compile them using the evC
compiler, realizing that not all the calls we make the .DLLs will be
available in the PPC environment. This could be quite messy, but would
eliminate the maintenence issue.
I realize that some of the calls that the Windows .DLL will make, will not
be available in the PPC Edition. We will need to address these individually
I think.
Any suggestions? Thank you very much.
Mike Tag: checking the network connection type Tag: 112536
Max Number of TransportDemo Accounts
I'm creating a custom email transport based on the TransportDemo
example, but need to limit the number of accounts that a user can
create (ie I only want the user to be able to create one mail account
of type TransportDemo at a time).
If anyone has done this and can provide me with some help then it would
be appreciated.
Thanks,
Steve Tag: checking the network connection type Tag: 112535
EMAIL2 : configuring EMAIL2 account with Configuration Service Provider, polling problem (LINGER parameter)
Hello we are experiencing a problem with our Pocket PC App :
The app is actually designed to work on a Qtel9100
We want ton configure Pocket Outlook with a 30min polling for an
account we are creating in the app, like this :
public bool doOutlookConfiguration(EmailApplication ea)
{
try
{
String wszAccountXml = "<wap-provisioningdoc>"
+ " <characteristic type=\"EMAIL2\">"
+ " <characteristic
type=\"{DC88846A-11D3-444d-A8DD-00A15086346E}\">"
+ " <parm name=\"CONNECTIONID\"
value=\"{C1D06580-B364-45ec-8421-5ACF34129C58}\"/>"
+ " <parm name=\"SERVICENAME\" value='" +
ea.getEmailBoxName() + "' />"
+ " <parm name=\"SERVICETYPE\"
value=\"POP3\"/>"
+ " <parm name=\"INSERVER\" value='" +
ea.getInServer() + "' />"
+ " <parm name=\"OUTSERVER\" value='" +
ea.getOutServer() + "' />"
+ " <parm name=\"AUTHNAME\" value='" +
ea.getAuthenticationName() + "' />"
+ " <parm name=\"AUTHSECRET\" value='" +
ea.getAuthenticationPassword() + "' />"
+ " <parm name=\"DOMAIN\" value='" +
ea.getEmailDomain() + "' />"
+ " <parm name=\"REPLYADDR\" value='" +
ea.getReplyAddress() + "' />"
+ " <parm name=\"LINGER\"
value=\"30\"/>"
+ " <parm name=\"KEEPMAX\" value='-1'
/>"
+ " <parm name=\"DWNDAY\" value='-1'
/>"
+ " <parm name=\"AUTHREQUIRED\" value='1' />"
+ " <parm name=\"RETRIEVE\" value='-1'
/>"
+ " </characteristic>"
+ " </characteristic>"
+ "</wap-provisioningdoc>";
ConfigWrapper.ProcessXml(wszAccountXml,
ConfigFlag.Process);
return true;
}
catch (Exception exp)
{
...
}
}
Everything looks fine (i.e, the parameters are flushed, we can list
them ...).
In the account property page, we see the good values : send /receive
every 30 mins, checkbox checked.
The problem is the application never goes to check and send mails, it
never connects.
The only way to make it work is to go in the account's property page,
leave all the parameters, tap next, next, next, OK, and then, outlook
starts polling.
Currently, we try to save the registry :
- before editing the property page
- after editing the registry page
We will try to make a 'diff' on these two dumps to see any key
difference between them.
We want to resolve this problem, so if anybody has a clue for us, it
would be greatly appreciated.
Thx in advance
Frederic Bertin Tag: checking the network connection type Tag: 112531
Exception while navigating to a Uri
Hi All,
I am constructing a Uri with a query string attached and trying to
navigate to that Uri. But I get an unknown exception. However when I
directly place the uri in the browser's address bar and open it, it
works fine. Please find the line below where I get the exception.
webBrowser1.Navigate(new Uri(@"/Storage
Card/Flash/GPSRanger.html?GPSRanger%2Eswf"));
I tried using a dot instead of %2E, that didn't work either.
Can someone help?
I am writing this application on CF 2.0 in C# for a Windows CE 5.0
device.
Thanks,
Krupa Tag: checking the network connection type Tag: 112529
Exception while navigating to a Uri
Hi All,
I am constructing a Uri with a query string attached and trying to
navigate to that Uri. But I get an unknown exception. However when I
directly place the uri in the browser's address bar and open it, it
works fine. Please find the line below where I get the exception.
webBrowser1.Navigate(new Uri(@"/Storage
Card/Flash/GPSRanger.html?GPSRanger%2Eswf"));
I tried using a dot instead of %2E, that didn't work either.
Can someone help?
I am writing this application on CF 2.0 in C# for a Windows CE 5.0
device.
Thanks,
Krupa Tag: checking the network connection type Tag: 112528
How to force a key press/mouse click event?
Hi there,
Does anybody know how to throw key press and mouse click events
programmatically without actuaaly pressing a key or clicking the mouse?
I am working on a c# application on CF 2.0 for WinCE 5.0 devices.
Thanks,
Krupa Tag: checking the network connection type Tag: 112527
Windows Mobile and closing applications
Using a Windows Mobile 5 device, I run an application that I wrote that just
displays a form with one button. I also run File Explorer and then put the
device in the cradle which starts Active Sync. I then proceed to hit the X
in the upper right hand corner of those three applications. Then, go into
Settings..System..Memory..Running Programs and I see all three programs are
still running. This seems odd to me because I "closed" those applications
and there is no way, that I can see, to "alt-tab" through the running
applications once I "close" them.
Is there a special way to close applications under Windows Mobile 5? Tag: checking the network connection type Tag: 112523
Method override
Hi,
I'm trying to build a project that overrides a method of an abstract
class in another project. I keep getting the following error: "no
suitable method found to override". Does any have any ideas on what
i'm missing? Thanks in advance Tag: checking the network connection type Tag: 112521
Porgammatically adjusting the program/storage memory slider in an application.
Hi all,
Is it possible for me to programmtically adjust the program/storage
memory slider from within my application? Are there any PInvokes to the
coredll that would allow me to do this? You can easily change this in
'Start->Settings->Memory', so it is possible to do I would have
thought.
I am using an MC50 device that is running PocketPC 2003.
Thanks
Tryst Tag: checking the network connection type Tag: 112516
Help! How is the source codes in Printer folder organized?
Dear All,
I am now reseaching on the sources code in the Printer folder.
I have 2 questions.
First, how come the source codes in the PCL folder source
files can call the functions in the PRNERR and PRNPORT folder? How is
the dependence specified?
Second, in folder PCL misc.cpp, DLLmain() , case
DLL_PROCESS_ATTACH:, then the program flow will go to.....? how is the
functions in ddi.cpp and compress.cpp called?
Please Help!
Sincerely Yours,
HWB Tag: checking the network connection type Tag: 112512
GetForegroundWindow function
Hello - I've used GetForegroundWindow() in the past on a PocketPC2000 OS
device, in an eVB application. I'm desperately trying to figure out how to
accomplish the same thing on a Windows Mobile 3.0 OS device, in a VB.NET
application. Below is my code from the eVB app.
TIA,
Alan G.
-------------------------------
Public Declare Function GetForegroundWindow Lib "Coredll" () As Long
Private Sub tmrForegroundCheck_Timer()
msCurWindow = CStr(GetForegroundWindow()) ' The current foreground
window
If msMyWindow = msCurWindow Then
' If our window is in the foreground then...
Else
' ...
End If
End Sub Tag: checking the network connection type Tag: 112506
Intermittent E_INVALIDARG -2147024809 0x80070057 on IPOutlookItemCollection::Item() call
I'm getting intermittent incorrect parameter errors when I iterate
through a collection of items in a folder. Shouldn't be a data problem
because I can iterate through the collection again and not get the
error on the same item.
I'm getting it on the call:
hr = pItems->Item(counter, (IDispatch**) &pTask);
Here's a code snippet:
if (SUCCEEDED(poom->Logon()))
{
IFolder* pFolder = NULL;
IPOutlookItemCollection *pItems = NULL;
ITask* pTask = NULL;
hr = poom->app->GetDefaultFolder(olFolderTasks, &pFolder);
if SUCCEEDED(hr)
hr = pFolder->get_Items(&pItems);
if SUCCEEDED(hr)
int count = 0;
hr = pItems->get_Count(&count);
for(int counter = 1; counter <= count; counter++) {
hr = pItems->Item(counter, (IDispatch**) &pTask);
if SUCCEEDED(hr) {
...
for(int counter = 1; counter <= count; counter++) {
hr = pItems->Item(counter, (IDispatch**) &pTask);
if SUCCEEDED(hr) {
hr = GetCustomID((IItem*) pTask, iCustomID);
if SUCCEEDED(hr) (...and iCustomID is in a range) {
pTask->Delete();
}
pTask->Release();
} //for
}
// Free memory.
pItems->Release();
pFolder->Release();
poom->Logoff();
} Tag: checking the network connection type Tag: 112503
monitoring DEBUGMSG & RETAILMSG
Hi All.
What is the easiest way to monitor DEBUGMSG / RETAILMSG (OutputDebugString)
calls in a running device driver on Pocket PC ?
Is there any way to do that in similar way as on PC running a Debug View
tool (monitoring DbgPrint calls) ?
If it only can be done with PB, what are steps should I do in order to
monitor debug messages from my driver running on a device ? (compiled with
eVC)
Thanks. Tag: checking the network connection type Tag: 112502
question mark on device
hey all,
on my pocket pc i can see my wireless keyboard via bluetooth and i can pair
with it but there is a question mark over the device. And the keyboard
doesn't work yet.
thanks,
rodchar Tag: checking the network connection type Tag: 112500
ftp from Internet Explorer fails when using Windows Mobile 5.0
When using ActiveSync 4.1 I am not able to issue an ftp command to my UNIX
server from a Windows Mobile 5.0 device. (It does work with Pocket PC 2003.)
The error message being displayed is:
* Internet Explorer
* The page you are looking for cannot be found due to unknown error
0x80072ee3.
This is happening with either a serial or a USB connection to my PC.
Does anyone have an idea what is happening and what my workaround would be?
Or, is ftp no longer allowed for security purposes? Tag: checking the network connection type Tag: 112498
Force Pocket Outlook to reload pim.vol
Hi everyone,
I'm kind of manipulating the pim.vol file, and when I copy one over the
original, and the try to modify it (using the any api), I can see that
the file used by pocket outlook is not the one I just copied.
One easy solution is to soft reset the pocket pc, and then pocket
outlook read the new pim.vol, but this is kind of boring.
So my question is : does any one know how to tell to pocket outlook to
reload its pim.vol file with having to soft-reset.
P.S : I've already tried to kill the poutlook process, but then
everything is going so unstable that I don't think this is the way.
Thanks for your help guys.
Ed Tag: checking the network connection type Tag: 112497
IBasicAudio is not implemented in default image of WM 5.0 Pocket PC Emulator (ARM4I) in VS 2005
Hi all,
How do I change default image of WM 5.0 Pocket PC Emulator (ARM4I) in
Visual Studio 2005?
I try to use IBasicAudio, but it's methods on runtime return error code
(E_NOTIMPL).
HRESULT hr;
long volume = 50;
IBasicAudio* pBasicAudio;
pGraph->QueryInterface(IID_IBasicAudio, (void **)&pBasicAudio);
hr = pBasicAudio->put_Volume(level);
[ hr = E_NOTIMPL ]
Thanks in advance,
DM Tag: checking the network connection type Tag: 112496
debugging a "datatype misalignment"
I have a multithreaded PPC2003 application with a bug that causes a
"Datatype misalignment" exception.
In VS2005, the exception is displayed in the output window as:
Data Abort: Thread=92bfeb9c Proc=902ea4e0 'DSClient.exe'
AKY=01000001 PC=01f83390 RA=01f83ab4 BVA=32168fc9 FSR=00000003
First-chance exception at 0x01f83390 in DSClient.exe: 0x80000002:
Datatype misalignment.
I'm able to get my callstack during the break, but it doesn't appear to
point to anywhere:
> 0x01f83390
0x01f83ab4
How can I find where this exception is actually occuring? Tag: checking the network connection type Tag: 112488
Can't Get The Correct ActiveConfig in USB driver
Hi,
I am currently writing a usb drivers and below is the description in
details.
Project: Driver for USB to Serial device in WinCE
IDE: Platform Builder for Win CE 5.0
So far, we are able to get the device to enumerate properly (Getting
device, configuration descriptors etc..) However, we are unable to set
the configuration. In the Device descriptor, there are 2
Configurations. Config1 with only 1 bulk out pipe. Config2 one with 1
bulk out, 1 bulk in and 1 interrupt. The problem we are having is
setting the configuration to Config2.
Descriptors:
// Device Descriptor
- pDevice 0x005114dc
dwCount 0x00000020
- Descriptor {...}
bLength 0x12 '?'
bDescriptorType 0x01 '?'
bcdUSB 0x0110
bDeviceClass 0xff '=FF'
bDeviceSubClass 0x00
bDeviceProtocol 0x00
bMaxPacketSize0 0x08 '?'
idVendor 0x0451
idProduct 0x3410
bcdDevice 0x0101
iManufacturer 0x01 '?'
iProduct 0x02 '?'
iSerialNumber 0x03 '?'
bNumConfigurations 0x02 '?'
//Config1
- lpActiveConfig 0x002bc1e0
dwCount 0x0000001c
- Descriptor {...}
bLength 0x09 '?'
bDescriptorType 0x02 '?'
wTotalLength 0x0019
bNumInterfaces 0x01 '?'
bConfigurationValue 0x01 '?'
iConfiguration 0x00
bmAttributes 0x80 '=80'
MaxPower 0x32 '2'
lpvExtended 0x00000000
dwNumInterfaces 0x00000001
+ lpInterfaces 0x005113e0
//Config2
- pConfigDesc 0x002bc1fc
dwCount 0x0000001c
- Descriptor {...}
bLength 0x09 '?'
bDescriptorType 0x02 '?'
wTotalLength 0x0027
bNumInterfaces 0x01 '?'
bConfigurationValue 0x02 '?'
iConfiguration 0x00
bmAttributes 0xa0 ' '
MaxPower 0x32 '2'
lpvExtended 0x00000000
dwNumInterfaces 0x00000001
+ lpInterfaces 0x00511440
This is what we used to set the Configuration:
// This SET configuration was completed successfully
USB_DEVICE_REQUEST usbDevReq;
usbDevReq.bmRequestType =3D USB_REQUEST_HOST_TO_DEVICE |
USB_REQUEST_STANDARD | USB_REQUEST_FOR_DEVICE;
usbDevReq.bRequest =3D USB_REQUEST_SET_CONFIGURATION;
usbDevReq.wValue =3D (pDevice->lpConfigs +
*ConfigIndex)->Descriptor.bConfigurationValue;
usbDevReq.wIndex =3D 0;
usbDevReq.wLength =3D 0;
USB_TRANSFER usbTrans =3D UsbFuncs->lpIssueVendorTransfer(hUsbDevice,
NULL,
0, USB_OUT_TRANSFER | USB_SHORT_TRANSFER_OK,
&usbDevReq, NULL, NULL);
// This GET configuration was able to verify that the Configuration was
Set to Config2 (ConfigValue =3D 2)
int Configvalue =3D 0;
usbDevReq.bmRequestType =3D 0x80;
usbDevReq.bRequest =3D USB_REQUEST_GET_CONFIGURATION;
usbDevReq.wValue =3D 0;
usbDevReq.wIndex =3D 0;
usbDevReq.wLength =3D 1;
usbTrans =3D UsbFuncs->lpIssueVendorTransfer(hUsbDevice, NULL, 0,
USB_IN_TRANSFER | USB_SHORT_TRANSFER_OK,
&usbDevReq, &Configvalue, NULL);
// However, Using lpGetDeviceInfo, the
lpActiveConfig->Descriptor->bConfigurationValue is still 1(Config1)
pDevice =3D UsbFuncs->lpGetDeviceInfo( hUsbDevice );
Another indication that the lpActiveConfig has not been set properly is
that we are unable to open the bulk in pipe which is only present in
Config2.
Anyone can give hints? Please advise.
Thanks. Tag: checking the network connection type Tag: 112483
RasEnumConnections not work with Windows Mobile 5
Hi,
I am using VS2005 VC++ to detect the cradle USB connection, below is my code:
DWORD lpcb;
DWORD lpcConnections;
RASCONN rasconn;
bool _returnvalue = false;
rasconn.dwSize = sizeof(RASCONN);
lpcb = sizeof(RASCONN);
LPRASCONN lp = &rasconn;
DWORD ret = RasEnumConnections(lp, &lpcb, &lpcConnections );
CString _a;
_a.Format(L"ret=%i",ret);
AfxMessageBox(_a);
_a.Format(L" lpc=%i",lpcConnections);
AfxMessageBox(_a);
if ((ret == 0) && (lpcConnections > 0)){
for (int i = 0;i< (int)lpcConnections;i++){
CString _entryname;
_entryname.Format(_T("%s"),rasconn.szEntryName);
if((_entryname.CompareNoCase(_T("`USB"))) == 0)
_returnvalue = true;
lp++;
}
} else {
AfxMessageBox(L"no conn.");
}
This code work with PPC 2003 (ret=0 and lpconnections = 1) but not in WM5
(ret=0 and lpconnections = 0). Can anyone tell me how to detect the USB
cradle connection in WM5 ?
Thank you Tag: checking the network connection type Tag: 112481
Positioning a main menu WM5 c# VS2005
Hi all
If I add a MainMenu, it always appears on the bottom left of the screen. Is
it possible to make it appear on the bottom right?
thanks
Andy Tag: checking the network connection type Tag: 112480
Notify Icon in PocketPC
Hi all,
I am creating a Pocket PC application, which has a Notify Icon in
System tray.
First I created a class which import MessageWindow class, then I import
that DLL and invoke that class through its instance.I used
Shell_NotifyIcon in the class to implement this Notification Icon and
NIM_ADD to add icon and NIM_DELETE to remove the icon to the tray.
While removing the icon gets disappear, but the place held by the Icon
shows blank space. When I reinstall my application, icon gets placed in
the next position leaving the previous position blank.
Could any one help me to sort this issue.
Advance thanks
Regards
Ashok T. Tag: checking the network connection type Tag: 112479
Notify Icon in PocketPC
Hi all,
I am creating a Pocket PC application, which has a Notify Icon in
System tray.
First I created a class which import MessageWindow class, then I import
that DLL and invoke that class through its instance.I used
Shell_NotifyIcon in the class to implement this Notification Icon and
NIM_ADD to add icon and NIM_DELETE to remove the icon to the tray.
While removing the icon gets disappear, but the place held by the Icon
shows blank space. When I reinstall my application, icon gets placed in
the next position leaving the previous position blank.
Could any one help me to sort this issue.
Advance thanks
Regards
Ashok T. Tag: checking the network connection type Tag: 112478
i got "couldn't find setup" error when installing evc 4.0 on Windows 2000 server
Hi,
I am trying to install evc 4.0 on windows 2000 server
After several pages of questions and key page, it asks where to install
the
common files. I browse to an existing directory. Then after about 30
seconds of inactivity, I get "couldn't find setup"
I have tried every permutation I can think of.
Please help. Tag: checking the network connection type Tag: 112477
Is Widows mobile always unicode
hi,
When just writing a application for my mobile phone , I got a doubt is
there any possibility windows mobile program is Non-Unicode.
I had fully coded unicode.But i am sure my program will not work if
#define _UNICODE is not defined.
A sample of my code follows..
int pons_Evaluate(LPCTSTR lpszPath)
{
DWORD dwFileAttributes = 0;
dwFileAttributes = GetFileAttributes(lpszPath);
.
.
// in the middle of my prog
int pathLen = lstrlen(lpsPath); //
MessageBox(hWnd1,L"Evaluated",L"Status",MB_OK);//only works for
unicode
.
}
So i want to know is windows mobile always unicode..
urs
Pons Tag: checking the network connection type Tag: 112476
TodayScreen overwritting problem
I want to display a dynamic (Integer) value in the TodayScreen. I am using
the MyToday example given in the MSDN, but the problem is that, it is not
clearing the previous message but overwritting on it. (This is done through
the DrawText function).
In one more example, I am using a Static Text (CreateWindow as "STATIC"
Text), and displaying the message using SetWindowText Funciton, here the
problem is, the Backround is not Transparent (White Rectangle around the
dynamic text) but the above said problem is not happening here.
Any suggestion in this regard is much useful.
Regards,
Nanda Tag: checking the network connection type Tag: 112475
Running GPS-monitor the background
Hi all,
I am evaluating a project and the use of PPC/Windows Mobile therein,
and I'm wondering whether it is possible to run an application in the
background (of an existing gps-nav application) and read data from an
internal/external GPS device. Would it also be possible to map a
hardware button so that it will be brought to the foreground and after
som user-interaction return focus to the gps-nav application?
Kind regards
Hugo Wetterberg Tag: checking the network connection type Tag: 112474
Using regions
Hi
I'm trying to create a polygon window using SetWindowRgn().
But a problem is, I can't use CreatePolygonRgn(). They say at windows CE,
they only support CreateRectRgn().
So I tried to create lots of rectangle region, and combine it with
CombineRgn function.
It works, but the speed is too slow.
Here's the code I tried:
HRGN newRgn = NULL;
if(!m_hRgn)
m_hRgn = CreateRectRgn(rt.left, rt.top, rt.right, rt.bottom);
else
{
newRgn = CreateRectRgn(rt.left, rt.top, rt.right, rt.bottom);
CombineRgn(m_hRgn, m_hRgn, newRgn, RGN_XOR);
}
int i;
int j = 1;
for(i=0;i<25;i++)
{
rt.left-=j;
rt.right+=j;
rt.top+=j;
rt.bottom+=j;
newRgn = CreateRectRgn(rt.left, rt.top, rt.right, rt.bottom);
CombineRgn(m_hRgn, m_hRgn, newRgn, RGN_XOR);
}
SetWindowRgn(m_hWnd, m_hRgn, TRUE);
Is there any way I can create some polygon region?
I found ExtCreateRegion(), but I can't figure out how to use this function
in MSDN.
Is there any good sample source about usage of this function?
Please advice.
Thank you in advance. Tag: checking the network connection type Tag: 112469
CAB installation and setting InstallDir at the last second (mobile
When creating a CAB file you are required to set the InstallDir
attribute under the [CEStrings] section of the CAB .inf file.
My problem is that I'm not sure where I want to install the CAB file
until the last possible second, as the CAB file is being installed.
This is well after the CAB file has been built.
In Mobile 4.2 you were able to override the InstallDir attribute at the
last possible second by setting a registry value at
[HKEY_LOCAL_MACHINE\SOFTWARE\Apps\Microsoft Application
Installer\Install]. You would set the registry value for your app, call
"wceload.exe /noaskdest", and then wceload would look at this registry
key for where to install the contents of your CAB. (This is described
at
http://blog.opennetcf.org/afeinman/CommentView,guid,1de2284c-a65e-417c-a130-1bd5acd4ad3d.aspx)
This no longer works in Windows Mobile 5.0. I know for sure that
wceload still looks at that registry key, because if you just call
"wceload.exe" it will install all the CABs listed in that key. The
problem is that no longer overrides the InstallDir attribute. I've
tried all combinations of command line switches (e.g. /silent, /noui) as
well as signing the CAB, to no avail. In my search for an answer I
found that you can create a setup.dll to accompany your CAB, which has
four functions called by wceload. One of the functions is Install_Init,
described at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ce_setup_install_init.asp
One of the parameters passed in is the install directory. I thought
it'd be sweet if I could modify that in memory and accomplish my goal.
This doesn't seem possible though because it's specified as an [in]
parameter.
Anyone have any suggestions? Tag: checking the network connection type Tag: 112468
VPN Settings Installer
Is there a way to create an installer that will push a client's VPN settings
to the PocketPC / Win Mobile 5 device ?
The client does not want the users to have the VPN Concentrator group
information and would like to use the Microsoft VPN Client on the device
Thanks Tag: checking the network connection type Tag: 112466
Re Rotate Screen
hi
I already had try those registry settings, in case it would have helped....!
but I guess I don't have a proper windows mobile version.
Anyway thanks, it's good to know that the code can work and that the problem
does't come from there.
I'll use one of those bulky screen rotation softwares that fortunately
work on my pda.
bye
hi
I had also once did programs regarding the screen orientaion....
Your code works well in my device [ i-mate K-Jam ] works on windows
mobile 5.0..
...and...
ChangeDisplaySettingsEx() will work on Windows CE .NET 4.0 and later.
To make your changes permanent store them in registry. There are two
values in registry under HKEY_LOCAL_MACHINE\System\GDI\Rotation key
where the system takes its orientation mode on startup:
-> Angle - DWORD value holding rotation angle in degrees. Valid values
are 0, 90, 180, 270.
-> LandscapeMode - DWORD value holding flag of landscape mode. Valid
values: 0 (portrait mode) and 1 (landscape mode).
Note that changes made using such calls are not persistent, after
soft-reset display mode will return to the previous state.
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =- Tag: checking the network connection type Tag: 112465
Messaging->New: changing default language
How can I change default language for New Messages?
It is no good - always open options menu and change language from 'Western
European' to, for example, 'KOI-8' for each message. Tag: checking the network connection type Tag: 112458
Messaging->New : change default message language
How can I change default language for New Messages?
It is no good - always open options menu and change language from 'Western
European' to, for example, 'KOI-8' for each message. Tag: checking the network connection type Tag: 112457
Messaging->New : change default message language
How can I change default language for New Messages?
It is no good - always open options menu and change language from 'Western
European' to, for example, 'KOI-8' for each message. Tag: checking the network connection type Tag: 112456
WM5 shell - set input method w/IME disabled?
If I disable the IME in my app, sending EM_INPUTMODE messages doesn't work,
but the user can still toggle the device's current input method using a
hardware key.
Does this mean there's a way I could programmatically toggle/set the
device's current input method without requiring that the IME is enabled?
Thanks. Tag: checking the network connection type Tag: 112455
Mobile.MobileCapabilities --> Unknown Browser
Hi all,
I built a simple asp.net 1.1 and wanted to check out my ipaq 6515a browser
capabilities. Here is my simple code:
Dim mc As Mobile.MobileCapabilities
mc = CType(Request.Browser, Mobile.MobileCapabilities)
lbldisplay.Text = mc.Browser
When I browse the page with my ppc, I got Unknown for browser. Please help.
Thanks. Tag: checking the network connection type Tag: 112454
Is DLL&Lib for Pocket PC 2000 Compatile With WM5?
Hello,
I have a dll and the correspond lib compiled with Pocket PC 2000 SDK, do
they work in WM5 SDK?
Thakns in advance,
William Tag: checking the network connection type Tag: 112452
Turning down volume of Windows Media Player while playing wave-file
Hi,
I am in the process of adding sound alerts to an existing Pocket PC
application developed in evc 3.0. The application is targeting Pocket PC
2002 devices and higher. The application is used in scenarios where users
might be listening to music from the media player, so I need to turn down
the volume of the media player to maybe 10% or just mute the sound, while
playing the desired wave files.
I have been doing a lot of research into this but simply can not figure it
out. Any help would be geatly appreciated.
Sincerely,
Steffen L Tag: checking the network connection type Tag: 112444
PocketPC Phone Emulator - Roaming network?
Hello,
I've noticed the Pocket PC Phone Emulator (WM 5.0) includes a "Fake
Radio" part (It registers on "Fake Network"). I've tried to see what
other networks are available and also found "Fake Roaming Network" and
"Fake Denied Network". However, I can't register the phone on "Fake
Roaming Network" (trying to register it on the "denied" network
obviusly fails).
Is this a bug that can be fixed? It would be great to be able to test a
phone based application on a fake roaming network.
Thank you. Tag: checking the network connection type Tag: 112443
Hi,
I'm using vb.net to develop an application. I would like to know is there
any way to check the network connection type such as gprs or wifi, etc?