Graph.
Hello all,
I need to develop a dialog-based application which must draw curves (like
sine waves, etc.) and it must have vertical and horizontal axises so users
can scroll to view the curves.
If any body point me to some development resources to accomplish this, I
would very appreciate.
The platform should be Mobile 5 PPC or Mobile 6.
Thanks in advance. Tag: SDIO driver for Mobile 6? Tag: 127019
Seek Help For MMS programming of WM5 !!
Hi, everyone
Here comes a big trouble. I was told to develop an app about MMS on
WM5 PDA and I have little concept about it at all. My goal is simple:
when receiving a MMS comes from a special phone num, get the
attachment of it, and store the attachment to another place or open it
using the PDA. The filetype is a kind of voice file, like mp3, but
it's not important at current time. I wonder: How to deal with the MMS
part?
Helps will be appreciated!! I'm waiting, THX!!
BEST WISHES
skovano Tag: SDIO driver for Mobile 6? Tag: 127017
Unable to load MUX driver in WM6.0
Hi.
I am trying to run WM6.0 by creating a BSP. i am able to succesfully run the
same over an emulator.
But when i try to load MUX driver (by changing the configuration files), it
is not getting loaded. Moreover no entry of MUX is getting created in the
simulator registry. Same is working fine in WM5.0.
Can any one help me out in this?
Regards,
Ravi Tag: SDIO driver for Mobile 6? Tag: 127001
Problem with Reading Sim Contacts
I am trying to read SIM contacts from my Windows Mobile. The code is
given below
class SimManager
{
private const Int64 S_OK = 0x00000000;
public const int SIM_CAPSTYPE_ALL = 0x3F; // All device cabability
types
public const int SIM_PBSTORAGE_SIM = 0x10; // General SIM Storage
public const int SIM_SMSSTORAGE_SIM = 0x2; // SIM storage location
public static void ReadSimContacts()
{
try
{
int hSim = 0;
int result = SimInitialize(0, 0, 0, ref hSim);
if (result != 0) throw new Exception("Failed to Open Call Log");
uint uiUsed = 0;
uint uiTotal = 0;
result = SimGetPhonebookStatus(hSim, SIM_PBSTORAGE_SIM, ref uiUsed,
ref uiTotal);
SIMPHONEBOOKENTRY entry = new SIMPHONEBOOKENTRY();
entry.cbSize = (uint)Marshal.SizeOf(typeof(SIMPHONEBOOKENTRY));
result = SimReadPhonebookEntry(hSim, SIM_PBSTORAGE_SIM, 0, ref entry);
}
finally
{
}
}
[StructLayout(LayoutKind.Explicit, Size = 48)]
internal struct SIMPHONEBOOKENTRY
{
public uint cbSize; // @field Size of the structure in bytes
public uint dwParams; // @field Indicates valid parameter values
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=256)]
public string lpszAddress; // @field The actual phone number
public uint dwAddressType; // @field A SIM_ADDRTYPE_*constant
public uint dwNumPlan; // @field A SIM_NUMPLAN_*constant
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=256)]
string lpszText; // @field Text assocaited with the entry
}
[DllImport("cellcore.dll")]
public static extern int SimInitialize(uint dwFlags,
int lpfnCallBack, uint dwParam, ref int lphSim);
[DllImport("cellcore.dll")]
public static extern int SimGetPhonebookStatus(int hSim,
uint dwLocation, ref uint lpdwUsed, ref uint lpdwTotal);
[DllImport("cellcore.dll")]
public static extern int SimReadPhonebookEntry(int hSim,
uint dwLocation, uint dwIndex, ref SIMPHONEBOOKENTRY entry);
}
I am able to get the total number of SIM entries but when i tried to
read the PhoneBook entry the reutrn value is some negative value and
the SIMPHONEBOOKENTRY is empty. Please tell me what is wrong in this
code. Tag: SDIO driver for Mobile 6? Tag: 126999
Cursor disappears from textbox control for font sizes larger than 20
Hi,
I am working on an application which targets windows mobile 5.0 pocket
pc devices in C#2005.
Now the cursor shows for font sizes smaller than 20 for a multiline
textbox but it doesn't for larger font sizes.
I am sure the textbox is taking focus. Is there a workaround to make
it show ? Tag: SDIO driver for Mobile 6? Tag: 126997
Detecting window close on PocketPC
Hello,
How can one detect that the used has clicked the X button of the window?
Windows CE doesn't send a WM_CLOSE message, but only a WM_ACTIVATE. But
a WM_ACTIVATE could be caused by many other things, so it's not a
reliable way to find that.
thank you very much,
Felipe Tag: SDIO driver for Mobile 6? Tag: 126996
Windows CE window size
Hello,
I am writing a PocketPC application, and to get a window which is full
screen, I use CW_USEDEFAULT on Width, Height, Left and Top on
CreateWindowEx.
Now, that produces a too large window. The bottom panel of the device is
partially covered. What is the recommended way to create a window with
the exact size of the screen, without covering the bottom panel?
I know this is a very simple question, but I googled a lot and couldn't
find an answer =(
thank you very much,
Felipe Tag: SDIO driver for Mobile 6? Tag: 126995
How to install/uninstall apps on emulators?
Hi all,
I need to programmatically install/uninstall apps onto the smartphone/
ppc emulators. What are some ways to do this?
TIA! Tag: SDIO driver for Mobile 6? Tag: 126994
Great for Pocket PC Converting
VideoEncoderPro Ver. 1.0
Video Converter-Encoder Software
50+ Codecs + Custom Codecs
One of Best and Fastest Encoders
Auto-detects newly installed codecs
Great for Pocket PC Converting
Over 50+ Video Formats
Unlimited Custom Codec Options
Builtin Media Player to view encoded Files
<http://www.sharewaresoftware.org/vep/vep.htm> Tag: SDIO driver for Mobile 6? Tag: 126985
Building free42 for Pocket PC
Hi, all
I just found out about a really cool emulator for the HP-42s called free42.
You can download it from http://free42.sourceforge.net/
The source code is set up for Embedded C++ 3.0, and I'd like to build it
with VS 2005.
I tried to import the existing project files but it didn't work. Before I go
to the trouble of recreating the project, I'm wondering if someone has
already done this. If you have, please let me know!
Cheers
- rick Tag: SDIO driver for Mobile 6? Tag: 126980
Emulator to open local file on PC
Hi,
Related to a question I asked before, I'm using CF3.5 with VB.net and trying
to get the emulator to open a local file on the laptop hard disk - so far
unsuccessfully ! (although it works fine on the PDA)
I'm also using a database sqlserverce - which the emulator can find !
The database file is located in the application root directory "C:\vb\pda"
However when I use the same code to try and open another file e.g. image or
text file I get a directory not found error
Here is the code to get local file path:
Public Function GetAppPath() As String
Return System.IO.Path.GetDirectoryName( _
System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
End Function
However when I try the following code it can't find the file / directory
Bigpicture.image = new bitmap("\Program Files\test1\remove.jpg")
Here is the code that successfully locates the path for the database file:
Public pth As String =
(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly.GetName.CodeBase) + "\MyDatabase#1.sdf")
(Although when I show the 'path' with a Msgbox statement, it says
"\Program Files\test1\MyDatabase#1.sdf"
which I find confusing (test1 is the name of the project), however the
application path is "C:\vb\pda" !
I've tried the same code to open a local file, but it never finds it - and
I've tried all variations !
I read somewhere that the emulator can access the "My Documents" folder on a
PC, but I don't know how to do this ?
Any help would be appreciated !
Thanks
David Tag: SDIO driver for Mobile 6? Tag: 126974
Garbage Collector Trauma
Hi
I have an application written in VB.NET for windows mobile 2005
device. In addition I have 2 unmanaged DLL's written in C which the VB
app uses.
The app runs absolutely fine until the system garbage collector gets
triggered, at which point one of my DLL's (in which I create a
separate thread for some sound recording task) thread gets suspended
and never gets up after that. At this point my application just stops
working.
Is there any way I can mark my THREAD as GC-SAFE so that GC just
bypasses it during its sweep operations.
The intriguiing part is, if I manually trigger the GC with the
following lines (executing these lines quite regularly)
GC.Collect()
GC.WaitForPendingFinalizers()
GC.Collect()
then it seems to be working fine, even when the GC is virtually always
on.
Anyone has any say on this please advise as I am not convinced with
calling the GC commands from within the application.
Cheers
Sid Tag: SDIO driver for Mobile 6? Tag: 126962
Sending mail in c#
hi,
How to send email in c# compact framework.i know the code to send mail in c#
windows application any one send me the code to send mail in c# compact
framework
Regards,
venkat Tag: SDIO driver for Mobile 6? Tag: 126961
Setting a static IP / Registry values in hex vs. hex(7) (CE4.2)
I'm trying to programmatically set a static ip address / gateway /
mask on my device. There's no API so far as I'm aware so I've tried
writing directly to the registry.
Dumping the registry before and after setting a static IP address
manually gives me:
[HKEY_LOCAL_MACHINE\Comm\P5001\Parms\TcpIp]
"DefaultGateway"=hex(7):\
32,32,32,2e,32,32,32,2e,32,32,32,2e,32,32,32,00,00,00,00
"Subnetmask"=hex(7):\
...
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters]
"ContextSettings"=hex:\
b8,0b,00,00,00,00,00,70,d0,07,00,00,89,13,00,00,88,13,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces
\P5001]
"ActiveSettings"=hex:\
b4,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
...
But after writing these values in manually, the ip addresses dialog
comes up with empty entries.
If I dump the registry now I get
[HKEY_LOCAL_MACHINE\Comm\P5001\Parms\TcpIp]
"DefaultGateway"=hex:\
32,32,32,2e,32,32,32,2e,32,32,32,2e,32,32,32,00,00,00,00
You'll notice that the registry type in the first case is hex(7):\ and
in the second is just hex:\
Could this be why I'm not setting these values correctly? I can't see
any way of writing a registry type as hex(7) vs hex
RegSetValueEx(m_hkey, pcszKey, 0, REG_BINARY, (PBYTE)pData, cbData)
Thanks for any suggestions. Tag: SDIO driver for Mobile 6? Tag: 126956
How to enable 'Display mixed content' for internet explorer mobile
Hi there,
My device is ASUS 525 and it has been upgraded to Windows Mobile 6. When I
browse some web pages which contain both http and https contents, there is
always a warning message 'This page contains both secure and nonsecure items'
pops out and request my confirm to continue. I know for desktop internet
explorer such prompt can be turned off by modifying an setting named 'Display
mixed content' in security policy setting page. But since there is no such
customization settings for internet explorer mobile, how should I do to turn
this warning off?
--
Best Regards,
Matt Tag: SDIO driver for Mobile 6? Tag: 126949
VS2008 #^$@!$ and its wizards
OK, so I migrated from VC6 and eVC to Vis. Studio 2008, and it is the
pits.... The latest migrane headache:
I needed a quick utility so I created a new Smart Devices dialog based
project. Added a couple of controls to dialog, and started connecting
them to code. Double click on a button expecting that this will cause
"add OnClick" to the MFC class based on that dialog. Instead I get
"Add/Remove operation is impossible, because the code element fileName
is read only". All other wizards like add new variable, or add message
handler fail also. I have some other (complex) programs that I
"imported" from eVC. In these projects wizards do work. How do I
enable them in a new project?? Yes, I do know how to do these things
manually...
Henryk Birecki Tag: SDIO driver for Mobile 6? Tag: 126944
Only digits in edit box
Hi guys!
I am using edit box that is created like this:
HWND ctrl = ::CreateWindow( L"EDIT", L"",
WS_CHILD | WS_BORDER | WS_TABSTOP | ES_NUMBER,
0, 0, 0, 0,
hWndParent, (HMENU)ID, m_hInstance, NULL );
but on some devices (some HTC) when I try to enter number it wants me
to press FN button and doesn't put any symbol, only beeps. But on
other devices it works well.
I want this edit to enter only numbers on all devices!
Does anybody know how to solve this problem?
Thanks a lot! Tag: SDIO driver for Mobile 6? Tag: 126942
Verify which connection is active
Hi guys,
I would like to know a way to verify which connection is active in my
pocket pc.
I've developed a solution to download some files in a Ftp server, if
I'm using the device with the usb cable the device will conect using
my pc's internet, if I'm using the pocket without the cable it will
connect using my GPRS connection.
Is possible to verify using c# which connection is active?
Any Ideas?
Thanks,
Marco Tag: SDIO driver for Mobile 6? Tag: 126941
CAB files and running processes
I need to install a program with a CAB file, but that program is always
running in the Pocket PC. Do you know if the install system is able to
overwrite the existing file? Tag: SDIO driver for Mobile 6? Tag: 126940
Invoking WMP on Windows Mobile 6 - C++
Hi All
I'm trying to invoke WMP on a Windows Mobile 6 device - with not
too much success. The code snippet that I use is:
IWMPPlayer *pWP;
IWMPSettings *pWPSet;
IWMPControls *pWPCtrl;
CoInitializeEx(NULL,COINIT_MULTITHREADED);
HRESULT hr = S_OK;
CComBSTR bstrVersionInfo;
BSTR mybstr;
hr = CoCreateInstance( __uuidof(WindowsMediaPlayer), NULL,
CLSCTX_INPROC_SERVER, __uuidof (IWMPPlayer4),(void **)&pWP);
hr = pWP->QueryInterface(__uuidof(IWMPSettings), (void **)&pWPSet);
hr = pWP->QueryInterface(__uuidof(IWMPControls), (void **)&pWPCtrl);
mybstr = SysAllocString(L"\testmp3\Alarm3.wma");
//hr = pWP->openPlayer(mybstr);
hr = pWPSet->put_autoStart(TRUE);
hr = pWP->put_URL(mybstr);
Issue No.1:
All the hr's are expected values except for put_URL() which returns a
S_FALSE - which I later found is ok. When I
alternatively try to use the openPlayer method it returns E_NOIMPL
which is also supposed to be fine for WMP version 10 according to MSDN
docs. But inspite of all this there's nothing happening on my mobile
device. What am I doing wrong???
BTw I also tried using get_controls and get_settings instead of
queryInterface method - still nothing. The process seems so straight
forward - but I'm clueless as to what's going on. Also, I tried using
a proper URL instead of a file name - still zilch.
Issue No.2:
When I try to include atlhost.h to my sln it returns an error that
CAxWindow is not declared. I'm able to compile and work the sln fine
with atlbase.h and atlwin.h. Why is there a problem with atlhost.h.
Issue No.3:
If I ever get to solve issue no.1, I want to try invoking WMP in the
windowless mode. The MSDN docs talk about the
IOleInPlaceObjectWindowless interface to achieve this, but I'm not
clear on how to use it. Any pointers there will be appreciated.
Sorry for the long post - but this is really driving me crazy - what
am I missing out??? Any help here will be hugely appreciated!!!
Thanks and regards
Sindy Tag: SDIO driver for Mobile 6? Tag: 126928
WM5/WM6, changing color of menubar possible?
Hello,
I want my app to change the color of the menubar. I'm using native C++,
non-MFC Win32.
I'm using the SHCreateMenubar(...) function in my dlg proc's WM_INITDIALOG
handler as shown below, using the documented SHCMBF_COLORBK flag.
The call returns success, yet the color never changes. I've tried moving the
call to WM_ACTIVATE, and didn't have any better results there.
Any ideas?
----------
<...snip...>
case WM_INITDIALOG:
// error handling omitted for clarity
// init dialog - specify shell elements visibility
SHINITDLGINFO tDlgInfo;
memset(&tDlgInfo, 0, sizeof(SHINITDLGINFO));
tDlgInfo.dwMask = SHIDIM_FLAGS;
tDlgInfo.hDlg = hDlg;
tDlgInfo.dwFlags = SHIDIF_SIZEDLGFULLSCREEN;
SHInitDialog(&tDlgInfo);
// create menubar
SHMENUBARINFO tMenuBar;
memset(&tMenuBar, 0, sizeof(SHMENUBARINFO));
tMenuBar.cbSize = sizeof(SHMENUBARINFO);
tMenuBar.hwndParent = hDlg;
tMenuBar.dwFlags = SHCMBF_COLORBK;
tMenuBar.nToolBarId = IDR_MAIN_MENUBAR;
tMenuBar.hInstRes = g_hInst;
tMenuBar.clrBk = RGB(100, 0, 0);
bResult = SHCreateMenuBar(&tMenuBar);
break;
<.../snip...>
-------------- Tag: SDIO driver for Mobile 6? Tag: 126927
Bluetooth HID
Is there a way to offer Bluetooth HID as a service from a Pocket PC to
another host? For example, I want to connect to a Sony Playstation 3 with
Pocket PC 2003 as a HID over Bluetooth.
Thanks.
--
JP Tag: SDIO driver for Mobile 6? Tag: 126924
Importing Certificate to respective store.
Hi,
I am able add certificate on to store on the device from my application.But
on the device, when importing, if the cert has an associated private key, it
should to go into the Personal Store. If the cert doesn't have a private key,
it goes to the Intermediate store.
Currently i am able add all the certs only to the personal store.So after
enumerating the certificates,before adding i want to check if the certificate
has a associated private key,if so i want to add that to persoanle store else
to intermediate store.
Thank in advance! Tag: SDIO driver for Mobile 6? Tag: 126910
Phone logs
Hello everyone,
Need to access the phone' log history - Incoming, outgoing, missed etc.
I cannot find any info accept for MSDN showing P/Invoke. Downloaded a VS
solution which has both C# and a VB project. Both compile and run but the
Phone test shows incorrect info! This application was created with 2003. The
only thing it does do correct is how many records there are (used a loop
with different amount of log entries).
I have waded through lots of web sites and have found no new material -
everyone points to the msdn article/sample which does not work. Anyone
knowing how to accomplish this task or know of a resource please let me
know!
-James Tag: SDIO driver for Mobile 6? Tag: 126904
Capturing stylus input anywhere on the screen
Hi,
I need to capture the stylus input, when the stylus is pressed
anywhere on the screen (outside the bounds of my application), much
like the "write anywhere" option of the transcriber.
I was able to create a SIP (soft input panel) application, and I
can capture the stylus input in that application window. If I use the
SetCapture() function, I can capture the whole stroke, only if it
started within the bounds of the SIP, and later dragged outside the
window bounds. But how can I capture it when the stroke starts
outside the bounds of my application ? Any help will be appreciated.
Thanks Tag: SDIO driver for Mobile 6? Tag: 126896
PowerPolicyNotify(PPN_UNATTENDEDMODE,TRUE) doesn't have desired ef
Hi All,
I have a .NETCF2 app written in C# that p/invokes into the native power API
to set the power policy during execution of the application. The application
needs to keep executing even if an attempt to suspend occurs. I discovered
that PowerPolicyNotify() can be called to set a state called unattendedmode
which prevents the device from truely stopping execution.
I am using an Ipaq HW6915 running windows mobile 5 and the Microsoft
Messaging and Security feature pack. I call PowerPolicyNotify with the
PPN_UNATTENDEDMODE flag and the result returns true. This might be wrong as
my p/invoke declaration maybe incorrect, here it is:
[DllImport("coredll.dll", CharSet=CharSet.Unicode)]
private static extern bool PowerPolicyNotify(int dwMessage, int dwData);
basically I call this function like:
bool bResult = PowerPolicyNotify((int)PPN_Message.PPN_UNATTENDEDMODE,
(bState == true ? 1 : 0));
The application runs a worker thread that is using a PUSH type mechanism
over HTTPS. When the request returns with a action result it calls back into
the main thread and brings up a notification. If I manually switch the
device with the power button when the notification returns the display
activates and shows the notification ok. If the device decides to suspend
after its own timeout things go very hairy. The notification does not wake
the device and once the device is manually resumed the worker thread appears
to have stopped. It doesn't even resume the code and make another request. I
cannot debug it as its not running over activesync but over GPRS.
I can get over it by manually changing the device power policy not to switch
off the device but this is a config overhead. Also the application sometimes
freezes with a wait cursor once it resumes after a deep suspend like this. I
could look at why but I don't want the device going into a deep sleep.
Is there anything I'm doing wrong or something else I should be doing? Is
this just down to the device implementation of this policy itself? Am I
correct to assume just one call to set this policy at app startup is enough?
Many Thanks
Richard Tag: SDIO driver for Mobile 6? Tag: 126890
3G-324M stack availability?
Hi All,
Please let me know if anybody has used 3G-324M stack earlier and is it
freely available?
If not then how to get it .
Plz suggest me.. Tag: SDIO driver for Mobile 6? Tag: 126885
Audio buffer problems on WM5
Hi, We are developing an app for Windows Mobile 5.0 PPC and Smartphone
that requires audio capture and play using wave API.
We have 2 thread time_critical priority threads handling the capture and
playback.
We are using CALLBACK FUNCTION it the waveOutOpen/waveInopen fucntions,
Currently we have 25 buffers each allocated for capture and playback. The
buffer size is
160 bytes of 16 bit samples at 8Khz. SO we are buffering 25 x 10ms for
capture and playback.
The capture is working fine, however the playback works very well for about
20 seconds
then starts to stutter after a couple minutes it comes back good for 20secs
then goes bad for
2 minutes agains and so on.
Can anyone suggest how many buffers we should be using typically and how
what size the
buffers should be.
Thanks Tag: SDIO driver for Mobile 6? Tag: 126880
Exchange Activesync on Single Server
Hi
I would like to use SSL on my connections to a Single Exchange Server
but from documents I have read it appears you have to turn this off
for Activesync to work, is this correct?
I spent hours configuring SSL on phone and IIS only to find I have to
create another Virtual Directory that does not have SSL configured?
Appreciate your comments.
Dominic Tag: SDIO driver for Mobile 6? Tag: 126874
Popup Dialog in Pocket PC (custom / localized message box)
How would I create a popup dialog in Pocket PC similar to the message box?
I am aware of the fact that a modal dialog will fill the screen. How would
I create a custom window that will popup up on top of the current screen?
The reason I need to do this is to create a message box where I can replace
the text in the buttons with localized versions (such as French). Maybe
there is a better way to do this. Using the French version of Windows
Mobile would solve this, but I have to use the English version. Any ideas?
Thanks
Timothy Dean Tag: SDIO driver for Mobile 6? Tag: 126870
Displaying asian font glyphs on a "Western" PDA
Is it possible to display East Asian glyphs (Chinese, Japanese) on a
western based PDA. I have an application that works fine on a PC, and
on WinMobile5 emulator with Japanese image. In the first case I use
Arial MS Unicode or MS Gothic font. On Japanese image emulator I just
use built in font. If I use a "Western" PDA device, or emulator with
English image, all I am getting are "squares" even when using MS
Gothic (I also tried others) font. Is there something I need to do to
enable display of Chinese/Japanese characters?
Cheers,
Henryk Birecki Tag: SDIO driver for Mobile 6? Tag: 126868
ConnMgrEstablishConnectionSync
I had this piece of code working perfectly before, but now it doesn't
ZeroMemory(&datos_gprs, sizeof(datos_gprs));
datos_gprs.cbSize = sizeof(datos_gprs);
datos_gprs.bDisabled = FALSE;
datos_gprs.dwPriority = CONNMGR_PRIORITY_USERINTERACTIVE;
datos_gprs.dwParams = CONNMGR_PARAM_GUIDDESTNET;
datos_gprs.guidDestNet = IID_DestNetInternet;
retorno = ConnMgrEstablishConnectionSync(&datos_gprs, &gprs, 10 * 1000,
&estado_gprs);
When code reaches the call to ConnMgrEstablishConnectionSync, I see it
tries to connect (the two arrows in the taskbar appear), and then the
function fails. I use GetLastError and FormatMessage to read the error
message and it says that this function can only be run in Win32 mode.
If I try to open a web page with Internet Explorer just after it is able
to connect... why? Tag: SDIO driver for Mobile 6? Tag: 126865
Iterating Registry Values
Is there any other recommended ways of getting a list of all the values
for a registry key in Windows Mobile?
I have a key with 65000 values in it, and it takes ages to get all the
value names (using RegEnumValue and adding them a list). My understanding is
that each time you call RegEnumValue it starts from item no 1 and counts
down to the one you wish, which by the time you get to item 60000 is
SLOW....
Is there a better way of doing this?
Mike Tag: SDIO driver for Mobile 6? Tag: 126863
Sort of OT but serial port experts are here!
I have been struggling with a problem on a program on XP where it is reading
a serial port.
If I send it "abc" it works, but if I send it "aaa" it doesn't. It sets bit
7 on every alternate character.
I tried this just using hyperterminal with a null modem cable and I get the
same behaviour.
I've "fixed" it by stripping bit 7 on input, but does anyone know why this
happens and if there is anything that can be done about it?
It doesn't happen EVERY time, but more often than not.
TIA
Unc Tag: SDIO driver for Mobile 6? Tag: 126859
Help with Intermec cab file creation/installation
I'm developing applications that run on Intermec 700 and CN2 barcode scanners.
The application gets installed on the "external" memory card. CabWiz (I'm not
sure if it's Intermec's version or Microsoft's) allows the InstallDir variable
to contain multiple paths separated by a '$' to be specified. Doing this causes
the cab file to be installed in the first valid location in the list. An example
would be:
InstallDir="\Storage Card$\SDMMC Disk$\Program Files"
If the "\Storage Card" directory is not valid, then "\SDMMC Disk" is used. If
that is not valid, then "\Program Files" is used.
This method works fine...except when you get into the area of custom setup DLLs.
When a custom setup DLL is used, the entire InstallDir string is used instead of
checking each directory. In the custom DLL code, I'm able to get the name of the
storage card location ("\Storage Card" on CN2 and "\SDMMC Disk" on 700). But,
none of this matters when the cab file is putting files into the "InstallDir"
directory.
I'm suspecting that the Intermec CE_Setup.dll is the culprit. I think it has the
logic built in to parse and check the InstallDir variable and set the actual
installation directory. I need to know how to do this. There are entries in some
files that I need to change to have the installation directory.
Thanks,
Kevin Tag: SDIO driver for Mobile 6? Tag: 126858
Browser caching
Hi
I am downloading a zip file (manually) from server into Pocket PC.
After download I am calling my .net CF application which unzips that
zip file, but my browser is caching always the downloaded zip file.
How can I break the caching after complete download?
thanks Tag: SDIO driver for Mobile 6? Tag: 126857
Browser caching
Hi
I am downloading a zip file (manually) from server into Pocket PC.
After download I am calling my .net CF application which unzips that
zip file, but my browser is caching always the downloaded zip file.
How can I break the caching after complete download?
thanks Tag: SDIO driver for Mobile 6? Tag: 126856
DEVICE_ID broken on HP iPaq 210 models?
Hi
We use the DEVICE_ID structure returned by IOCTL_HAL_GET_DEVICEID to get a
unique device ID for use in our licensing scheme for our Pocket PC software.
We have noticed though that the newly released HP iPaq 210 models donâ??t
appear to return unique device data in the DEVICE_ID struct.
The PresetID bytes are the null terminated Unicode string â??PocketPCâ??.
The PlatformID bytes are the null terminated ansi string â??HPIPAQ210_24337â??.
Has anyone else noticed this?
If so is there an alternative mechanism to get a unique device ID on HP 210
models?
Cheers Tag: SDIO driver for Mobile 6? Tag: 126855
How to access Pocket Outlook Categories
Hi ,
I want to access all the categories of pocket outlook.
I know the categories can be fatched through POOM but it fetches one
by one from appointments
Please suggest me any other way to implement this ?? Tag: SDIO driver for Mobile 6? Tag: 126850
Application Deployment
Hi there,
We have WM5 application that we wish to package and deploy as simply as
possible. At the moment we use vs2005 to deploy the .NET 2 compact framework
then copy our xx.cab file to the device and execute it and finally install a
third party Kiosk application and configure it. What we would like is to
create a setup package that installs all three of these components with a
single install via activesync. I've had a bit of a look at the compact
framework install but have not found how to easily deploy it without using
the SDK or VS.
I'm probably missing something here but it doesn't seem to be that simple.
Does anyone out there have any ideas on how to do this or can point me to
some articles that show how this package would be created?
The ultimate aim is a one or two click install via active sync if possible.
Thanks
Devron
--
Devron Blatchford Tag: SDIO driver for Mobile 6? Tag: 126846
Suppressing searching in ListView control
Hi,
when some keys are entered in list view control it searches for an item
beginning by entered letter. If item is not found some sound is played.
I have special functions for digit keys, they act as 'hotkeys'.
I don't want to list control started searching for an item on digit key
press. I've tried to subclass list control and in my list control window
procedure i'm catching WM_KEYDOWN message and in case of my keys i
perform an action and return zero from windows procedure. But even i
don't call original procedure, it still performs searching.
How to disable that and still receive WM_KEYDOWN messages?
-----
Saman Tag: SDIO driver for Mobile 6? Tag: 126842
problem with marshal.write
Hi,
I'm writing a c# application for a windows ce device.
I'm using the PhysicalAddressPointer class, by Chris Tacke, in the following
page to access to physical address:
http://blog.opennetcf.org/ctacke/PermaLink,guid,9a6c5e09-1bd1-4603-99b7-11310c06b68b.aspx
I'm using it this way:
PhysicalAddressPointer myDevice = new PhysicalAddressPointer(Device_Address,
0x400);
int Value = myDevice.ReadInt32();
Value |= 1;
myDevice.WriteInt32(Value);
for some reason, whenever I try to write (i.e Marshal.WriteInt32)
I get an exception, and my application terminates.
Does anyone know how to deal with it
Thanks a lot Tag: SDIO driver for Mobile 6? Tag: 126840
FakeGPS
I am trying to use FakeGPS utility provided with WinMob6 SDK. Either
whoever wrote it did not know NMEA standard, or GPS_POSITION
documentation is faulty. In the latter longitude and latitude are
specified as being in degrees. FakeGPS passes a value that is not. It
just passes whatever it reads in file which is "encoded" ddmm.mmm (for
latitude). At this point I do not know if it distinguishes NS and EW.
Anyone knows what should it be?
Cheers,
Hneryk Birecki Tag: SDIO driver for Mobile 6? Tag: 126833
Problem with brushes and colors
Hello,
I am having a problem with Windows CE that is making me crazy. Any code
setting background or brush color using GetSysColor doesn't seam to work.
For example, this code doesn't work, the background doesn't paint in
COLOR_HIGHLIGHT or COLOR_WINDOW, but rather always black:
// fill the background
if Enabled and Selected then
lgBrush.lbColor := Windows.GetSysColor(COLOR_HIGHLIGHT)
else
lgBrush.lbColor := Windows.GetSysColor(COLOR_WINDOW);
lgBrush.lbStyle := BS_SOLID;
Brush := CreateBrushIndirect(lgBrush);
Windows.FillRect(Data^._HDC, Windows.Rect(Data^.rcItem), Brush);
DeleteObject(Brush);
This code works perfectly:
// fill the background
if Enabled and Selected then
Brush := Windows.GetSysColorBrush(COLOR_HIGHLIGHT)
else
Brush := Windows.GetSysColorBrush(COLOR_WINDOW);
Windows.FillRect(Data^._HDC, Windows.Rect(Data^.rcItem), Brush);
on the same place as the other, inside the handler of a WM_DRAWITEM event.
Now, I've also put traps to check the value of
GetSysColorBrush(COLOR_WINDOW) and what I don't get is that it's value
seams to depend from where the code is!
If I put a button on my form and make it tell me what the value of
GetSysColorBrush(COLOR_WINDOW) is, he will say: $FFFFFF = white
If I make a message box be created inside that WM_DRAWITEM event and
make it tell me what the value of GetSysColorBrush(COLOR_WINDOW) is, it
will say: $000000 = black =(
And so my TCheckListBox item looks very ugly, see the image here:
http://wiki.lazarus.freepascal.org/Windows_CE_Development_Notes#TCheckListBox
Any ideas why this crazy behavior? I'm using the Windows Mobile 5 Emulator.
thank you very much,
Felipe Tag: SDIO driver for Mobile 6? Tag: 126831
Process cannot access the file, it is already in use by another
Hi
I have developed an application for unzipping and deleting the zip
files and my application worked in the Pocket PC2003 emulator with out
errors but in the Windows Mobile 5 Pocket PC device, after deployment
I am getting the "Process cannot access the file "ec284451.zip", as it
already in use by another process". I am using simple File Delete
method. could any one please tell me.
string[] files = Directory.GetFiles(zipsPath);
foreach (string file in files) {
try {
if (File.Exists(file)){
File.Delete(file);
}
}
catch (Exception ex) {
MessageBox.Show("Files Could not be deleted :" + ex.Message);
}
}
Thanks,
Aruna.G Tag: SDIO driver for Mobile 6? Tag: 126826
Shutdown the device
Hi,
Does anybody know how to shutdown WM 6.0 device correctly inside the
application?
I'm aware that it's strongly not recommended to do that except from
the Power manager directly.
But I really need this functionality.
I think that it's possible to implement that basing on the samples
from Platform Builder.
But I'm in a horror to implement that without having the correct
documentation.
I'm even not sure that it will work at all even if to implement all
the required steps.
May be someone has such an experience and can share it with me :) ...
Br,
Dmitry Tag: SDIO driver for Mobile 6? Tag: 126820
Problem getting IMEI no in WM 5.0 PocketPC!!!
Hi All,
I was writing an application for windows mobile 5.0 where i needed to
get the IMEI no of the device.
When i did a linegetdevcaps for all the device id's i couldnt find the
CELLULAR LINE in any of the device id however there was a Generic IrDA
line.
When i tried to negotiate the ext version using
lineNegotiateExtVersion() it is giving a LINEERR_OPERATIONUNAVAIL
error.
Does anyone know what might be the problem??
Thanks in advance. Tag: SDIO driver for Mobile 6? Tag: 126814
How to wake up/activate when switched off?
Hi!
How do I wake the machine up when it is switched off, like the "built in"
alarm does? I'm working on a timer application, and need to play some sounds
when a certain amount of time has passed. I'm using .NET 3.5.
regards
Carl Tag: SDIO driver for Mobile 6? Tag: 126813
SimWriteMessage issue
Hi,
There are many exclamations that SimWriteMessage doesn't work at all.
My own experience shows me that it's still not operational in Windows
Mobile 6.0
Is there anyone who successfully used that method?
Br,
Dmitry Tag: SDIO driver for Mobile 6? Tag: 126812
Hello all,
Does any body know whether platforms run Window Mobile 6 use Window SDIO
driver or they still use BSquare SDIO driver?