prexml file for cab project in Visual 2005 IDE
Hello all,
We are using CabWiz.exe to create our cab file through Visual Studio
IDE.
We are using a .vddproj file to build our cab file.
We want to add a pre provisioning file to this cab file by using the
ide.
I know that this is possible by using Cabwiz.exe command line ( /
prexml and /postxml), but is there a way to specify with the IDE which
xml file we want to use ?
Thank you very much,
Best Regards,
Jean-Christophe Tag: Using MP3 DMO on Windows Mobile Tag: 127041
Newbie Question for File Handling
I would like to write an application with C# in a Windows CE 5.0 device, but
I don't know how to read/write data from/to a ASCII file in the device, and
how to copy such file to a PC when it is connected USB cable.
Would anyone provide some sample codes for reference?
Thank in advance. Tag: Using MP3 DMO on Windows Mobile Tag: 127039
WaitCommEvent timout
I have a loop in a separate thread that reads data from a COM port. The
loop in the thread checks a flag to determine when to exit. My problem is
when I try to stop the read loop it hangs on WaitCommEvent when there is not
data coming from the COM port. Since overlapped is not supported in CE,
what is the best way to make the WaitCommEvent time out? I can force the
issue by using TerminateThread or closing the COM port, but I want to let it
exit gracefully if possible. Thanks.
Timothy Dean Tag: Using MP3 DMO on Windows Mobile Tag: 127031
Custom LAP verify dialog not appearing on WM 5.0 ppc
Hello.
I wrote custom LAP on Windows Mobile 5.0 ppc.
The name of my device is Dopod D600.
My custom lap is working well on the emulator.
On the device, enrollment dialog is displayed, but verify dialog is not
displayed after soft reset.
So I checked the parameter of verifyuser(LAP) function, and found out the
dwOption parameter was always VU_NO_UI on device unlike emulator.
Because of this problem, I have spent a lot of time.
I can't this solution anywhere.
Please help me.!!!
Regards. Tag: Using MP3 DMO on Windows Mobile Tag: 127029
Dealing with charset between different applications (Java/C++)
Hi,
I have some doubts and I hope you can dissolve them.
I'm using as my target machine a Pocket PC with Windows Mobile SE
2003. I have a client written in Java and a server written in C++. I
have to send characters such as =E8,=F2,=E0 and so on. I suppose that if I
send from java application such characters and I receive them in a
char array,they'll be misunderstood right?
The charset in use on the Pocket PC is ISO8859_1 (discovered through
java application). If I send bytes with this encoding,how can I deal
them? wchar_t?
And how I send responses to the client? send is defined as:
send(
IN SOCKET s,
IN const char FAR * buf,
IN int len,
IN int flags
);
which it doesn't use wchar_t. Please give me some advices.
Thanks Tag: Using MP3 DMO on Windows Mobile Tag: 127027
Change backLight brigtness programatically
Hello!
I'm developing a program in Windows mobile 5.0 with Compact Framework 2.0
and Visual Studio 2005 that must be showing information to the user whitout
the user interaction.
I use SystemIdleTimer to prevent the turn off but the brightness still "go
down" (I lose brightness). How can I prevent this?
Thank you! Tag: Using MP3 DMO on Windows Mobile Tag: 127025
Sr. Engineer Embedded
Hi All,
This is Regarding a job opening for the position of Sr. Engineer
Embedded.
May we introduce ourselves as a Resource Placement Consultants
specialized in placement of middle /senior level positions for both IT
and Non-IT industry. Additionally we do a large number of assignments,
pertaining to the optimum advantages of outsourcing finance.
About Our Client
Our Client is an established Global IT Solution and Services Company,
offering a wide range of software solutions that help deliver superior
business value to their customers.. They have successfully executed
more than 1500 IT engagements, across 58 countries for global
corporations, including Fortune 500 companies. We delight some of the
world's largest companies, including 5 of the Top 10 Fortune 500
companies.
Job Description
System/Embedded Engineers - SMEs
Location : Mumbai
Qualifications : BE
Experience 3-7 years
Technical / Domain Competencies
The Candidate Should have Good experience in telecom domain (C/C+
+,WinMobile/WinCE)
Should have experience in any RTOS(Linux or VxWorks)
Telecom experience - TCP/IP/ WLAN/ WiMAX, other protocols
Job Profile:
Should have Experience in Device drivers, Firmware development.
Should be Very strong in OO
Should be in DSP programming or ARM 7 or ARM9 based development
Should have Right attitude towards work - eager, high energy levels
Good communication and comprehension skills Tag: Using MP3 DMO on Windows Mobile Tag: 127022
Fading effect in .wav files
Hi all,
I am writing an application where i need to give fading effect
for a .wav file.I am taking fadein and fadeout time from user.Please
suggest me some approach to proceed further.
Thanks in advance. Tag: Using MP3 DMO on Windows Mobile Tag: 127021
SDIO driver for Mobile 6?
Hello all,
Does any body know whether platforms run Window Mobile 6 use Window SDIO
driver or they still use BSquare SDIO driver?
Thanks. Tag: Using MP3 DMO on Windows Mobile Tag: 127020
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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile 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: Using MP3 DMO on Windows Mobile Tag: 126846
Can someone point me to source code on how to use MP3 DMO on Windows Mobile
platform?
Also is AAC codec available as DMO on at least some Windows Mobile versions?