load icon in dll file not work ?!
we have to write a module with icon and system tray on pocket pc (WM6). Whan
i start the module as exe file. All icon can loaded, but when i compile the
module as dll file and loaded in main exe app, the icons will not appear.
I have tried to pass the hInstance from main process to loadIcon function
but no result. My question it is possible to load icon in dll file generally ? Tag: GetIpStatistics on pocket pc ? Tag: 127071
how to create icon on title bar with popup windows ?
I have posted this thread in other group (not for pocket pc) Sow know i will
post it again here.
I want to create an icon for my application placing on title bar,
that looks the same like popup windows of wifi/gsmsignal
strength/volume/clock icon. How can
i do that ?
I have tried with SHNotificationAdd() but it is only notification for menu
bar. And Shell_NotifyIcon() is only for today sys tray. Tag: GetIpStatistics on pocket pc ? Tag: 127070
RegisterWindowMessage Help
Hi,
I am using embedded visual basic 3 and pocket pc 2002.
I am trying to get my application to communicate with another app, so
that it sends a message when it is opened and closed.
I found out about RegisterWindowMessage and GetMessage but am unsure
about how to use them.
Would someone be able to give me some advice on their usage,
preferably with some examples?
Thanks
Richard Tag: GetIpStatistics on pocket pc ? Tag: 127067
using SHBOXEX
Dear All:
I would like to use SHBOXEX to develop some mobile apps.
but I met some difficulties. does anyone could give me some
suggestions.
I would like to show some pictures or icon in a toast window.
Here is the sample code I am trying:
#include "aygshell.h"
#include "wpcpriv.h"
#include "htmlctrl.h"
#pragma comment(lib,"coredll.lib")
#pragma comment(lib,"ossvcs.lib")
#pragma comment(lib,"aygshell.lib")
BOOL CALLBACK ToastHookProc(HWND hwnd, UINT uMsg,
WPARAM wParam, LPARAM lParam, VOID
*pvUser)
{
BOOL fRes = FALSE;
RETAILMSG(1, (L"The uMsg = 0x%x",uMsg));
switch (uMsg)
{
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
case IDCANCEL:
PostMessage(hwnd, SHBM_CLOSE, wParam, lParam);
break;
} // switch
}
return fRes;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow)
{
const TCHAR Info[] = L"Info";
//UINT uiTimeout = 10000;
//LPCTSTR pszText = Text;
HWND hwnd;
LPCTSTR pszTitle = Info;
SH_BOXEX shboxex;
HRESULT hr = S_OK;
int iRet = IDCANCEL;
memset(&shboxex, 0, sizeof(SH_BOXEX));
shboxex.cbSize = sizeof(SH_BOXEX);
shboxex.dwStyle = SHBEXF_TOPMOST | SHBEXF_SETFOREGROUND |
SHBEXF_CLOSE_LIKE_MENUS ;
shboxex.hwndOwner = NULL;
//shboxex.nTimeOut = uiTimeout;
shboxex.info.bi.dwOriginatingIcon = SHNBI_NOTIFICATIONS;
shboxex.info.bi.iXPos = SHBB_DEFAULT_BUBBLEPOS;
shboxex.info.bi.iYPos = SHBB_DEFAULT_BUBBLEPOS;
shboxex.info.bi.cxPos = SHBB_DEFAULT_BUBBLEWIDTH;
shboxex.info.bi.cyPos = -1;
shboxex.info.bi.dwAlign = SHBOX_TOPALIGN;
shboxex.sbextype = sbextToast;
shboxex.info.bi.dwFlags = SHBBIF_HTML;
shboxex.pfnHook = ToastHookProc;
// I would like to show this picture in the pop-up window, but I
found I could display it correctly
TCHAR temp[] = TEXT("<img src='\\windows\\device.bmp'>");
shboxex.info.bi.pszContent = temp;
shboxex.pszTitle = pszTitle;
hr = SHBoxEx(&shboxex);
return hr;
}
How to use this struct to display a picture in the toast window?
Does the toast window receive a WM_PAINT message?
Thanks in advance.. Tag: GetIpStatistics on pocket pc ? Tag: 127066
How to edit year of DTP control on SPWM5 device.
Hi,
I made one test program with one DTP(Date Time Picker) control. This
control working fine with emulator, I am able to change the "Year"
field without any problem.
When I run this program on the SPWM5( HTC 3125 and cingular 2125)
device, it does not allow me to edit the "Year". It allow me to edit
only date and month field on the device.
The control details are:-
CONTROL
"",IDC_DATETIMEPICKER2,"SysDateTimePick32",DTS_APPCANPARSE |
WS_TABSTOP,7,20,104,11
Is this known issue on some spwm5 devices?
On other platforms like SP2K3 and SPWM6 my test program working fine.
Thanks,
Indra Tag: GetIpStatistics on pocket pc ? Tag: 127063
wired keyboard for Windows Mobile 5 devices? using a handheld PC as
I'm looking for an external keyboard for my smart phone (Verizon
XV6700, same as HTC Apache or Sprint PPC-6700). I tried bluetooth and
would prefer a good old fashioned wired keyboard that would plug into
the phone's mini USB port. Does anyone make one of these? I am not
seeing one. It's amazing that they make these great Windows enabled
phones and iPhones and you're on your own if you want to use a simple
ps2 keyboard/mouse!
Or does anyone know anything about connecting the phone to a Win CE or
PocketPC 2000 handheld? (ie NEC Mobilepro 770, 790) Those have nice
keyboards and decent screens too if you can somehow get it to act as
an external "monitor" for the phone. The handheld PC has a serial
cable, PCMCIA slot, IR and CF slot. The phone has a mini USB plug &
mini SD slot. I would prefer a wired solution, if it's not too hard. I
have the old eMbedded tools 3.0 for the handheld (VB, C++) and Vis
Studio 2003 & 2005 for the Mobile 5 phone and a *wee* bit of
experience wiring & programming a microcontroller to do serial
communication. Any ideas, web links, warnings, etc? Tag: GetIpStatistics on pocket pc ? Tag: 127058
Problems with an eventhandler
I have a very strange problem - it only occurs with CF 2.0 and one
particular PDA (from TDS Recon). I kept getting a "native error",
which I eventually tracked down to an "access denied" error. This
appears to happen when the program leaves the handler which is
listening for data on the serial port. Using Debug, I can track it all
the way to the End Sub - then it falls over.
The CF 1.0 version of the same app runs fine on the same PDA, and the
2.0 version runs fine on other PDAs.
IOW, I haven't a clue where to go from here.
Peter Royle Tag: GetIpStatistics on pocket pc ? Tag: 127057
Form Animation
Dear All,
I am trying to create an application for Windows Mobile 6.0 using
C#.Net. The application has many forms and i want to open each form in
different way like scrolling from bottom, rotating, scrolling from
left etc. I saw an API AnimateWindow for desktop application but dont
know how to achieve the functionality in windows mobile. Please
provide me with some help.
Thanks Tag: GetIpStatistics on pocket pc ? Tag: 127054
IMailSyncCallBack/Pocket Outlook(Messaging)
Platform: Windows Mobile 6
Application: Pocket Outlook (Messaging)
Program Description:
Created an Email Client in my application using Win32 API and MAPI. I'm able
to create and submit my message to Pocket Outlook, but the message resides in
the Outbox until the next synchronization (Send/Receive set @ 5 mins).
However, I need to send the email as soon as possible, and I've read about
COM objects such as IMailSyncCallBack, but I can't find any examples of how
to use this interface properly. A lot of the material that's on the Internet
is very limited, and it's hard to decipher. Maybe I'm confused on the concept
of custom transports (and honestly, I don't want to create one if I don't
have to), but isn't there a way to just use the default transport and
synchronize, without having to provide the implementation details for the
abstract class IMailSyncCallBack? Since MSDN states this as a COM interface,
this is what I've been trying to do, however to no avail:
Code:
CLSID clsid;
LPOLESTR pProgID = L"PocketOutlook.Application"; //Don't think this
is right..
hr = CLSIDFromProgID(pProgID, &clsid);
IMailSyncCallBack *pMSCB;
CoInitializeEx(NULL, COINIT_MULTITHREADED);
//Following Returns E_NOINTERFACE... Therefore, the CLSID is incorrect.
hr = CoCreateInstance(clsid, NULL, CLSCTX_INPROC_HANDLER,
IID_IMailSyncCallBack, (void**) pMSCB);
if(SUCCEEDED(hr))
{
//pMSCB Methods go here
pMSCB->Release();
}
else
{
//Error!
MessageBox(hWnd, _T("Instance Failed!"), _T("Warning!"), MB_OK);
CoUninitialize();
return(-1);
}
Any help would be greatly appreciated.
-kvh
Was this post helpful to you?
Why should I rate a post?
Expand AllCollapse All Tag: GetIpStatistics on pocket pc ? Tag: 127053
Using MP3 DMO on Windows Mobile
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? Tag: GetIpStatistics on pocket pc ? Tag: 127050
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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? 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: GetIpStatistics on pocket pc ? Tag: 126870
can i use thi function on pocket pc ? Because when i call this function i
always get != NO_ERROR.