How to display a Dialog Box in Windows Mobile (using C#)
I would like to display a Dialog Box in Windows Mobile using C#. Any samples
or directions in this regard is much useful.
Regards,
Nanda R Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112577
BattResumingSuspendTimeout
I am developing a PDAphone project.
I have set "BattResumingSuspendTimeout" as 0xf (15 seconds).
But my device always suspend after 60 seconds while in resuming mode.
Could someone give me some opinion?
Thank you Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112576
Locking out the start bar.
I have asked this questiona couple of times before with no results as yet.
I'm coding in VB.Net2003 / 2005 for mobile devices, all CE or PPC based. I
need to lock out the OS so only my application shows. I don't like this
approach but it's what the customer requires.
Anyone have any info?
Cheers,
Tull. Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112575
How can initiate a send / receive of email in Pocket Outlook programatically?
I've searched and searched and can't find an answer to this problem.
There are many posts about using MAPI and the new Pocket Outlook
library in CF 2.0 to send email but I just can't see how to make
outlook do the sending and receiving. Basically I want to be able to
check the user's imap account from my own code. Any help appreciated! Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112574
internet connection present.
Hi,
I have a doubt. I need to know whether internet connection is
present in the device or not.
I tried 'InternetGetConnectedState' but I find it only says
whether my system is configured
for it or not.
Some help. regards,
Arun. Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112570
Conversion PPC Project from 2003 to 2005
hello all,
I am having a problem in converting a pocket pc smart device project
from MS VS.NET 2003 to MS.VS.NET 2005. Before coversion, on the
computer which is having the project ready, I have MS VS.NET 2003 and
.net framework v1.1 and compact framework v1.0.
Now when I took the same project developed in C#, and gone to the
computer who is having MS VS.NET 2005 and .net framework v2.0 and
compact framework v2.0.
Now when I have transfered the VS .NET 2003 project to the computer who
is having VS.NET 2005, and opened it, it shows me a coversion wizard,
and gives error message that "This project requires .NET compact
framework v1.0" and does not convert a project. In the error log, there
are no errors.
What should I do, how should I proceed.Please help me.
Thanks in advance
harshal shukla Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112567
String Pointer?
Hi all,
Recently, i have develop a program to store some personal info in PDA
registry.
When i edit the registry info through a third party software, i cant get the
exact value from registry.
Example, I write 12345 in my program. Later i manually edit 12345 to 23456.
But when i use my program to retrieve the data, i get "23456. Why there is a
" in front of the value?
Got any solution to get the exact value from registry even i manually edit it?
Or is that any method to lock the registry and not user edit it with third
party software?
Thanks.. Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112563
PPCWmpHost code sample compile errors.
Hi all,
My tools:
MS VS 2005
WM PPC 5.0
Windows Media Player 10 SDK
Code sample is downloaded from
http://www.microsoft.com/downloads/details.aspx?FamilyID=46ba698a-c00d-4b90-9177-460854f1b57c&DisplayLang=en#Overview
I compile PPCWmpHost workspace...
Compiling...
1>wmphost.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have
DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that
this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a
lower value
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
1>PopDlgs.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have
DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that
this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a
lower value
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
1>MediaLibraryDlg.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have
DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that
this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a
lower value
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
1>CWMPHost.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have
DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that
this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a
lower value
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
1>CWMPEventDispatch.cpp
1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have
DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that
this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.
1>WINVER was defined to be 0x0400, as it was either not set or set to a
lower value
1>C:\Program Files\Microsoft Visual Studio
8\VC\ce\atlmfc\include\atlhost.h(43) : fatal error C1189: #error :
atlhost.h requires Hosting support (_ATL_NO_HOSTING is defined). For
Windows CE platforms without DCOM support,
_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined.
Any information will be appreciated.
Thanks in advance,
DM Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112562
Today screen DLL not loading PPC2003
hi Guys!!
I have written a Today Screen plugin for WM 5.0 devices, which works
perfectly fine, but when i compile the Plugin with default Windows 2003
SDK that get installed with VS2005, the plugin dll is never loaded.
Any idea what can be the problem? do I have to install the seperate SDK
for PPC 2003?
any suggestions?? Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112558
checking the network connection type
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?
Thanks!! Tag: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112557
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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) 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: How to display a Dialog Box in Windows Mobile (using C#) Tag: 112469
I would like to display a Dialog Box in Windows Mobile using C#. Any samples
or directions in this regard is much useful.