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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? 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: 3G-324M stack availability? Tag: 126812
Tab color
Hello,
I am making an ASP.NET page to run on a handheld scanner. The screen
is pretty small and when you use the tab button to move from button
it
is hard to tell what button the tab index is on. Is there a way to
change the color of the button when that button was tabbed too? Tag: 3G-324M stack availability? Tag: 126807
[Winsock]Questions about recv function
Hi,
I'm trying to write a server application which use SOCK_STREMS socket
(TCP). By reading this page[1],I'm a bit confused about the behavior
of this function:
1. is it a blocking function? If not,has it a timeout?
2. If it's not a blocking function,how can I set this function in
blocking mode (to wait until data arriaves)?
3. When it receives data,what kind of character signals the end of
transmission? Carriage return/line feed or NUL character?
Thanks in advance for answering me. Have a good day.
[1]: http://msdn2.microsoft.com/en-us/library/aa922642.aspx Tag: 3G-324M stack availability? Tag: 126806
Getting WLAN MAC Address
Hi,
I have an application which needs to get the IP and MAC address of WLAN.
I am able to get the IP address, but for some reason haven't been able to get
the MAC address. GetLastError () returns 0. So, I am stuck. For your
reference I am providing the code which is used to get the MAC Address.
DWORD oidB = OID_802_11_BSSID ;
NDIS_WLAN_BSSID bSsid = {0,} ;
HANDLE m_hFileHandle ;
m_hFileHandle = CreateFile(NDISUIO_DEVICE_NAME,GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, INVALID_HANDLE_VALUE);
bl = DeviceIoControl (m_hFileHandle, IOCTL_NDIS_QUERY_GLOBAL_STATS, &oidB,
sizeof(DWORD), &bSsid, sizeof(bSsid), &dwReturned, NULL) ;
Is there something I am missing?
Thanks in advance. Tag: 3G-324M stack availability? Tag: 126801
Using USB to connect PDA to serial device
Hello, world!
I have an application on a PDA that connects to a device using
Bluetooth and the virtual serial port 7 (or 8, depending on the make
of PDA). I now need to connect directly from the USB port pn the PDA
to a serial port on the device. We have a USB - serial adapter cable,
but how do I talk to the USB port?
Can it be simple? Most sites I've looked at seem rather complicated,
getting down into serious technical coding that I never needed to do
with Bluetooth and the virtual serial port.
Any help welcome, especially some libraries that would make it nice
and easy. I am working in VB.NET, currently in VS 2003 and CF 1, but I
can upgrade if I have to, I'd just rather not, as this is basically
for 1 customer, albeit quite a good one.
TIA,
Peter Royle Tag: 3G-324M stack availability? Tag: 126799
video capture in YUV2 format
Hi Guys,
Is there any chance to capture video in YUV2 format under WM 5.0.
Currently I use default capture filter that does it in RGB565? But
still I have to either convert RGB565 to YUV2 using transform filter
or somehow force video capture filter to give me YUV2 output. Please
Help it's a very vital issue!! Tag: 3G-324M stack availability? Tag: 126798
Problem with control panel applet
am invoking the control panel settings through my code like
string strFileName = "ctlpnl.exe";
string strArguments = string.Format("cplmain.cpl,{0},{1}", 6, 0);
Process process = Process.Start(strFileName, strArguments);
process.WaitForExit();
but before that i am setting the forms property as maximized and also
hiding the taskbar. The problem is after invoking the control panel
setting i am not able to close it(since my taskbar is not visible). Is
it possible to have my own task bar displayed for all the forms i am
loading and even for control panel applet? and through that i can
close the process which i started?
Thanks. Tag: 3G-324M stack availability? Tag: 126795
POOM
Hello.
I'm currently using POOM under WM6, and I would like to get/set "Task"
and "Contacts" databases
from a windows desktop to device (and device => PC of course)
But... how can I do to know when a record has been modified/created or
deleted ?
Sounds crazy, but didn't find (in MSDN or Google :)) a SIMPLE way to
do that
other than using PIMFOLDERNOTIFICATION_XXX event family.
In the .EDB header or in the raw records, don't we have a "simple"
property saying, for example, "modified since..." ?
Please, could you help me ?
Thanks... Tag: 3G-324M stack availability? Tag: 126793
Using IKsPropertySet on DirectShow filters
Ok so I'm not sure who will be able to answer this one but here goes.
I've queried my video capture filter for the IAMCameraControl,
IAMVideoProcAmp and IAMVideoControl interfaces and have been toying
around with getting/setting various properties. Reading them usually
works but writing them doesn't seem to have much effect.
I was also looking at the IksPropertySet interface which you can query
on each of the 3 interfaces. But it seems that using the property set
is just another way of getting/setting properties in the same way you
can do by calling Get/Set directly on the control interfaces
(IAMCameraControl->Get() for example).
Is that correct? Tag: 3G-324M stack availability? Tag: 126792
TO MICEOSOFT: ActiveSync is a bad syncronisation program. It do not give sufficient control with duplication and syncronization settings.
First. I'm sorry that I'm not good in Engilsh, so you will find a lot of
incorrect sentens and spelling.
Hello all of you. I hope a Microsoft would read this.
I use WM 6 on a HTC P4350 and ActivSync 4.5
I always got unwanted change in ToDo lists and contacts. Dupliates and
changes in status, alarm and more.
I suggest that Microsoft look into Total Commandor and find Syncronize Dir
under Commands.
This is a genial way to syncronize.
Make som ting like this to deside the dirrection of syncronization.
Additional this could have been used for contact merging details.
Total Commandor have buttens where you could choose what you would se and
syncronize. It also gives a easy way to change the direction of
syncornization.
Best regards
Ove Nicolaus
One who alway have to clean upp the mass Active Sync makes. Tag: 3G-324M stack availability? Tag: 126791
Challenging Opportunity with Teleca USA
Hi,
Teleca is a world-leading supplier of software services to major
players of the mobile device industry. The company offers tailored
solutions, systems design and the integration of software and hardware
for mobile phones. Teleca has more than 1,900 employees in 11
countries in Asia, Europe and North America and is quoted on the Mid
cap list of the Nordic Exchange. For all position should have valid US
Visa.
Title: Windows Mobile BSP Software Development Engineer
Location: San Diego, CA
Employment type: Full time / Contract
Key Requirements: Should be proficient with recent versions of
Windows CE, PocketPC, and Windows Mobile for mobile devices -
particularly cellular handsets. C Programming skills required.
Platform Builder expertise. Lower level device driver; BSP (board
support package) experience i.e. keyboard, display, Bluetooth, camera,
et. al.
Should be responsible for developing, supporting and testing software
products for wireless Internet applications. Position will be involved
in multiple ongoing projects and consulting assignments.
Minimum 2 years relevant embedded programming, integration and testing
experience
BS/BSEE required.
Title: Windows CE / Mobile - Device Engineer
Location: Seattle, WA
Employment type: Full time
Key Requirements: Embedded Software Engineer proficient with recent
versions of Windows CE, PocketPC, and Windows Mobile for mobile
devices - particularly cellular handsets.
Responsible for developing, supporting and testing software products
for wireless Internet applications.
Minimum 2 years relevant embedded programming, integration and testing
experience
Recent versions of Windows CE, Windows Mobile, or Pocket PC experience
andC Programming skills
Platform Builder expertise o Lower level device driver; BSP (board
support package) experience i.e. keyboard, display, Bluetooth, camera,
et. al.
Qualification - BS/BSEE required.
Title: Microsoft CE / Mobile - Application Layer
Location: Seattle, WA
Employment type: Full Time / Contract
Key Requirements: Responsible for developing, integrating, testing and
supporting software products for wireless Internet applications.
Position will be involved in multiple ongoing projects and consulting
assignments. Will work with the latest emerging technologies. Minimum
2 years relevant embedded programming, integration and testing
experience (Must) BS-CS/BS-EE required (Must) Recent versions of
Windows CE, Windows Mobile, or Pocket PC experience ( Near Must) C++
Programming expertise and C programming skills (Must) Win32
Application Programming and MFC (Plus)
With all the positions mentioned, apart from the compensation we
provide benefits, Paid holiday, medical, dental, vision, short term
disability, long term disability, life insurance policy and 401-k.
We are sure that with your coming we will be adding to our
organisation's strengths of competence, commitment and customer
orientation. Please forward your resumes if you are qualified for the
above mentioned positions.
Best Regards,
Pooja Mahalakshmi Mohan
Teleca - Americas
1800 Preston Park Blvd, Suite 200
Plano, TX 75093
Call @ +1 858.342.4612
www.teleca.com
pooja.m.mohan@skype.com Tag: 3G-324M stack availability? Tag: 126787
Dealing with crashing application
Hi,
I have a server application which waits for connection on function
"accept". When I start debugging (and Pocket PC emulator load my
application) if I close the emulator the server crash with code 1067
(0x42b).
I tried to put this function in a try/catch block either with /EHs
property or /EHa but nothing to do. The crash doesn't free resources
so the socket remanins bound to a port and if I retry to lanch the
application,it can't bind the socket on that port anymore and in a
real use of this application it would be very bad.
Is there a way to free resources if a crash occurs? Or is it just a
stupid question? Thanks for the patience.
(Using Visual Studio 2005 pro) Tag: 3G-324M stack availability? Tag: 126786
Not able to load my jpeg decoder in WM600 for thumbnail images of
Hi,
I have a built-in jpeg decoder that works fine on WM604 Device
Emulator for viweing jpeg images and even view thumbnails of jpeg
images.
But on WM600:
a> My jpeg decoder gets loaded and works fine for viewing jpeg images
through P&V i.e. pimg.exe.
b> But when trying to load my jpeg decoder for thumnail view it does
not get loaded at all.
Is there any extra registry setting required for this or some change
in code to make it work on WM600.
Imaging registry settings are as follows:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Imaging\Codecs]
[HKEY_LOCAL_MACHINE\Software\Microsoft\Imaging\Codecs]
@=""
"_LastCookie"=dword:00000002
[HKEY_LOCAL_MACHINE\Software\Microsoft\Imaging\Codecs\Jpeg Imaging
Decoder]
@=""
"MIME Type"="image/jpeg"
"Filename Extension"="*.jpg"
"File Type Description"="JPEG"
"DLLNAME"="libjpgdecoder"
"Signature Mask"=hex:FF,FF
"Signature Pattern"=hex:FF,D8
"Signature Size"=dword:00000002
"Signature Count"=dword:00000001
"Format ID"=hex:AE,3C,6B,B9,28,07,D3,11,9D,7B,00,00,F8,1E,F3,2E
"CLSID"=hex:19,11,EA,8C,D7,16,FF,40,AD,13,14,04,97,77,73,48
"Flags"=dword:00020022
"Version"=dword:00000001
"_InfoSize"=dword:000000F0
Any help will be appreciated. Tag: 3G-324M stack availability? Tag: 126784
Pocket PC MUI Application development
Hi All,
I'm facing a problem i developing MUI application for Pocket PC.
As described in the MSDN I made the resource dlls with the xxxx.MUI
extensions.
It seems to be working fine in Smartphone, but the pocket pc is not
responding to the language change.
I've found that the LANGID GetUserDefaultUILanguage() is returning the same
LANDID 0409 irrespective of which language user has selected.
Did anyone faced the same issue?
Appreciate for any help.
Thanks,
S.Kumar. Tag: 3G-324M stack availability? Tag: 126780
playing wave files consecutively with minimal latency
hi,
I'm writing an application for WM5 which plays a series of wave files. At
the moment I am using PlaySound from coredll. This works fine but when I play
files one after the other there is some latency.
How do I remove this latency between playing the waves files. I have added
the wave files as resources in hope of cutting back on load time but they do
not play.
I have downloaded OpenNetCF but I get TypeLoadException.
Is there any way of concatenating multiple wave files on the fly then
playing it as one? Or is there a way of bufferring all of the files to be
played before playing.
Thanks
--
WD Tag: 3G-324M stack availability? Tag: 126769
Camera resolution (solved)
I posted some months ago about the SHCameraCapture dialog not getting
the camera resolution correctly.
This still doesn't work but I've found a way to force the resolution. In
this Registry key:
HKCU\Software\Microsoft\Pictures\Camera\USER
There you can find a DWORD value called "Resolution". On my system
(Fujitsu-Siemens T830) this value is always set to 2 each time you turn
on the device, which is the second highest resolution (the highest is
3). You can change it in your own program using the Registry functions,
before calling SHCameraCapture.
If you don't know the exact values for your system, just change them
with the camera interface and look up the values with a registry editor. Tag: 3G-324M stack availability? Tag: 126764
IOException
Hi
I have developed an application which always giving IOException when
I run it second time. If I shutdown my PDA and on it and run my
application its working perfectly.
My application do the following:
1) It gets zip files from My Documents folder
2) unzips and places the contents in specific location
3) deletes the zip files
4) creates html files and creates links to folders in html file.
these things works perfectly after every restart of my PDA only. Could
any one please tell me. Any Idea!! what I have to do now.
thanks. Tag: 3G-324M stack availability? Tag: 126763
switch-case backwards
Hi, this is a main month writer program:
public static string monthName(int month)
{
switch (month)
{
case 1: return "January";
...
My question is: is it possible to return the month number by the month name?
Like: January -> 1
Thanks, Tag: 3G-324M stack availability? Tag: 126753
How to debug Today Plug-in Item Dll
I want to create a Today Plug-in item dll ,and I have read the sample code
called "memwatcher" from Windows Mobile 6 SDK and write a Today Plug-in item.
But I found I have no way to debug it on either Simulator or Device, because
I could not sepcify the executable program to invoke it. I could not find
anything about it in documents provided with Windows Mobile 6 SDK.Is there
someone could tell me about that? Thanks in advance! Tag: 3G-324M stack availability? Tag: 126747
Programaticaly control Volume in Windows mobile device
Hi All,
I need to control the volume of windows mobile through my
application. I have tried to use waveOutSetVolume but it is setting
only the mobile volume but i want to control both mobile volume and
call volume(similar to the volume control) and also i need to switch
between off,on and vibrate. I need to do it through C#.
Thanks in advance. Tag: 3G-324M stack availability? Tag: 126746
Getting a font resource data
Because of performance issues I am not using GDI to draw fonts. The library I
am using requires .ac3 (compressed TTF fonts used on many asian language
devices) fonts to be added using a memory pointer and can not be added using
a file path. This drastically increases the memory usage of my app because
the font files are ~5MB. I would like to use LoadResource to obtain the
handle to the font data that is already loaded by the system.
Here is a snippet of code I'm using to try to get the font resource. But I
keep getting a 1814 error which is "The specified resource name cannot be
found in the image file."
int CALLBACK EnumFontFamProc(const LOGFONT FAR* lpelf, const TEXTMETRIC FAR*
lpntm, DWORD FontType, LPARAM lParam);
void loadAC3();
HGLOBAL fontData=NULL;
int wmain(){
loadAC3();
return 0;
}
void loadAC3(){
HDC hDC = NULL;
HMODULE handle = GetModuleHandle(NULL);
int installed=0;
hDC = GetDC(0);
if(hDC == NULL)
return;
//This is supposed to add a font as a resource but it only returns the
number of fonts added so it doesn't seem very useful unless you are using GDI
to draw the fonts
installed=AddFontResource(L"/Windows/mingliu.ac3");
//This will list one font from each font family that is installed on the
system and send the data to the callback funtion EnumFontFamProc
EnumFontFamilies(hDC,NULL,EnumFontFamProc,(LPARAM)handle);
//Use font Data here
ReleaseDC(0, hDC);
}
//Returning 0 stops enumerating fonts
int CALLBACK EnumFontFamProc(const LOGFONT FAR* lpelf, const TEXTMETRIC FAR*
lpntm, DWORD FontType, LPARAM lParam){
HMODULE handle=NULL;
DWORD error=0;
HRSRC fontResource=NULL;
printf("%Ls",(WCHAR*)lpelf->lfFaceName);
if(CreateFontIndirect(lpelf) != NULL){
//handle=GetModuleHandle(L"coredll.dll); I've also tried using this as the
module to search for the font resource in
//if(handle == NULL)
//error=GetLastError();
if((fontResource=FindResource((HMODULE)lParam,L"mingliu",RT_FONT))==NULL){
error = GetLastError();
return 1;
}
if((fontData=LoadResource((HMODULE)lParam,fontResource)) != NULL)
return 0;
else
error = GetLastError();
}
return 1;
}
Any help is appreciated thanks Tag: 3G-324M stack availability? Tag: 126745
RAPI on Vista not threadsafe?
Hello,
we use RAPI to communicate with device connected through ActiveSync (Mobile
Device Center in Vista). Following code worked perfectly on Windows prior
Vista, but hangs every time on second run. Catch is that RAPI initalization
and unitialization is done in different threads
Is it true that either RAPI on Vista or Mobile Device center as such are not
thread safe?
Thanks for helping,
Bostjan
Note: in following case RAPI calls are made through wrapper class which
dynamically loading RAPI functions. If you wan't to test you can replace them
by statically linked ones:
//---------------------------------------------------------------------------
void CTest_Vista_ActiveSyncDlg::OnButtonTest()
{
m_buttonTest.EnableWindow(false);
Test();
m_buttonTest.EnableWindow(true);
}
//---------------------------------------------------------------------------
UINT Thread_Link_Init_ActiveSync( LPVOID pParam ) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CTest_Vista_ActiveSyncDlg *dlg = (CTest_Vista_ActiveSyncDlg*) pParam;
HRESULT hRes;
RAPIINIT ri;
DWORD dwRet;
ASSERT(dlg);
// initialize RAPI
memset(&ri, 0, sizeof(RAPIINIT));
ri.cbSize = sizeof(RAPIINIT);
hRes = dlg->m_RAPI._CeRapiInitEx(&ri);
if (hRes != ERROR_SUCCESS ) {
dlg->m_iResult = 1;
dlg->m_ThreadWorker = NULL;
return 0;
}
dwRet = WaitForSingleObject(ri.heRapiInit, 1000);
if (dwRet != WAIT_OBJECT_0) {
dlg->m_iResult = 2;
dlg->m_ThreadWorker = NULL;
return 0;
}
dlg->m_iResult = 0;
dlg->m_ThreadWorker = NULL;
return 0;
}
//---------------------------------------------------------------------------
void CTest_Vista_ActiveSyncDlg::Test()
{
if (m_cInThread.GetCheck()) { // initialize in separate thread
m_ThreadWorker = AfxBeginThread(Thread_Link_Init_ActiveSync, (LPVOID)this,
THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED, NULL);
if (m_ThreadWorker) {
m_ThreadWorker->m_bAutoDelete = true;
m_ThreadWorker->ResumeThread();
}
else {
MessageBox(_T("Can't create thread"), _T("ActiveSync"), MB_ICONERROR);
return;
}
while (m_ThreadWorker) Sleep(1);
}
else { // initialize in this thread
Thread_Link_Init_ActiveSync(this);
}
// wait until thread finishes
while (m_ThreadWorker) Sleep(1);
// show possible errors
switch (m_iResult) {
case (0): break;
case (1): MessageBox(_T("Initialization failed"), _T("ActiveSync"),
MB_ICONERROR); break;
case (2): MessageBox(_T("Device not connected"), _T("ActiveSync"),
MB_ICONWARNING); break;
default: MessageBox(_T("Unknown error"), _T("ActiveSync"),
MB_ICONWARNING); break;
}
Sleep(1000);
MessageBox(_T("Before Uninit"), _T("ActiveSync"), MB_ICONWARNING);
// this is critical in second run
m_RAPI._CeRapiUninit();
MessageBox(_T("Uninit OK - test successfull"), _T("ActiveSync"),
MB_ICONINFORMATION);
} Tag: 3G-324M stack availability? Tag: 126741
Viewing list of Running applications in Pocket PC using VS 2005.
Hi,
How am I able to view the running applications currently running in my PDA
(Windows Mobile 5.0) when my PDA is connected to my PC via ActiveSync 4.5?
My intent is actually to perform a software patch to my applications via my
PC. But I would like to 1st detect any instance of my application running in
the PDA before performing that patch.
Pls advise on how can it be done using c#. can i write a ppc application, an
exe, with c#, deploy it to my pda and afterwhich I execute tt exe using my pc
to check if there's currently instance of my ppc app running?
if this is possible, is there any c# code example that i can reference to or
can share with me?
Pls assist.
Thanks experts.
--
Johnson Tag: 3G-324M stack availability? Tag: 126738
Query on Certificate configuration .
In my application i can add certificates to the store on the device as well
as desktop.Now when i apply a certificate thatâ??s already on the device, the
current implementation just overwrites it.I can use CERT_STORE_ADD_NEWER but
i want to check, If the one on the device is newer, then i would like to
prompt the user with a message providing info on both certs (at least their
names and dates), and asking if the user wants to replace or skip. If the
cert on the device is older or the same, then we should just go ahead with
the replacement without prompting.
I need help how can i get the info on both certs? i am using
CertAddCertificateContextToStore api. Tag: 3G-324M stack availability? Tag: 126736
Creating and reading Favorites in PPC
Hi
I want to create/write favorites in pocket PC after clicking a link
in aspx page or html button click. which one will be possible to
create favorites. And I want to read the favorites url through .net
CF. where can I find the information.
Any Ideas please!!!
Thanks. Tag: 3G-324M stack availability? Tag: 126735
have a pocket pc 2003 app. how to convert to windows mobile?
hi
i created a pocket pc 2003 app using vs2003.
i'm now using vs2005.
i'v installed the windows mobile SDK.
new projects have the ability to be build for windows mobile. but my old app
can't.
how do i convert my app to run on a windows mobile. Tag: 3G-324M stack availability? Tag: 126733
Replacing Phone button in Windows Mobile Emulator
Hi All,
I have created an smart device application (Windows mobile 6.0)using
VS2005 and also an Setup and Deployment project for creating a
installer for the same, which will deploy the application and create
an entry in start menu.
What i want is there is a phone button on bottom left of the windows
mobile i want to replace that button with another button which should
launch my Application. Please provide some help.
Thanks in advance. Tag: 3G-324M stack availability? Tag: 126732
How to Access Pocket Outlook Categories
Hi,
I want to get all the categories of Outlook Calendar From the Mobile at once
I am using C#.net in my application.
I think I get can get categories by IItem - > PIMPR_CATEGORIES properties
But I am facing two problems while getting all the categories from outlook
at once.
1) I am not getting IItem anywhere.
I have added the pimstore.lib But still i am not able to find IItem
I have find some others interfaces like IException IFolder But not able to
find IItem.
2)Also suggest how can i use its functions like GetProps() in my code to get
the all categories at once. would you please provide me some sample code to
do this.
IF THERE ANY OTHER PROCEDURE TO ACCESS ALL THE CATEGORIES FROM POCKET
OUTLOOK SUGGEST ME THAT
Thanks is advance Tag: 3G-324M stack availability? Tag: 126731
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..