|
I'm wondering how to implement an auto-upgrading system for a windows mobile (C# .NET 2.0) application that works as well as ClickOnce or something similar. The app would communicate to a web service to get patch info and the actual files as well.
Does anybody know of an article that explains how to impliment an upgrade system for a mobile application?
I've read a few articles on transfering files over a web service, so that's as much of a hurdle.
|
|
|
|
|
|
Yes one guy give link to you for to up-to-date functionality with webservice for PPC.
Thanks
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
I know the window class of the taskbar is 'HHTaskBar'. So I can get it's handle via FindWindow function.But I can't get the icon information.
Thanks!
|
|
|
|
|
|
Thank u! I want to emumerate icons on taskbar.
|
|
|
|
|
i will check with my code,you can try with P/Invoke.
thanks
|
|
|
|
|
Hi,
Does anyone know if it possible to install Version 2.0 of the Compact Framework for use with Visual Studio.NET 2003?
If yes, where can it be downloaded?
Thanks in advance.
|
|
|
|
|
No, Visual Studio 2005 is required.
There is a standalone .NET Framework 2.0 SDK[^] but you won't get any form designers or easy-to-use debuggers.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
HI Guy
In my knowleadge no way for do that.Becuase of there no template for VS2003 with .comapct framework 2.0.
And i will tell one advice to you.install CF 2.0 do applcaition, there is lot of new features.
thanks Guys
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
Hi ,
Can any one suggest me how to change MTU size for wireless adapter in windows 5.0 mobile devices.
I have registry editor but i dont know which key/sub key to change MTU size...
I need to reduce MTU size below 1400 .
Thanks in adavance.....
RST
"Life is like a box of chocolates... You never know what You Gonna get "
|
|
|
|
|
Hi,
How can I register COM wrapper dll in pocket pc. Is this possible?
Any Ideas please!!!
Thanks,
Aruna.G
|
|
|
|
|
Hi,
gottimukkala wrote: How can I register COM wrapper dll in pocket pc. Is this possible?
Are you talking about a COM Callable Wrapper (CCW) that allows non .NET CF applications be able to make use of COM objects exposed by your .NET assembly?
If you are the answer is you can't do this. The .NET Compact Framework does not currently support the hosting APIs etc required to host the .NET CF runtime within another (native) process.
Hope this helps,
Christopher Fairbairn
|
|
|
|
|
|
Hello,
I want to handle the event when the screen orientation changes. I searched the web but nothing.
I want to put my code for each orientation based on the orientation. Is there any event that I can/should handle? I was thinking of capturing the orientation hardware's button pressed event but could not find it.
Thanks for your help,
CodingYoshi
|
|
|
|
|
Hi CodingYoshi,
CodingYoshi wrote: I want to handle the event when the screen orientation changes. I searched the web but nothing.
What language are you developing in?
When the orientation changes the size of your fullscreen window will automatically change. So one way to detect changes is to handle the window size changed event or window message that occurs in your chosen framework.
If you need to tell if you are in portrait or landscape mode you can determine this by then checking if the current window width is greater than the height.
If for some reason you actually need to determine the true orientation of the device (i.e. 0, 90, 180, 270 degrees) you can do this but the answer is a little different depending upon your programming language/environment of choice.
Hope this helps,
Christopher Fairbairn
|
|
|
|
|
Hi Christopher,
Thanks for the reply. I am using .NET (VB, C#, C++). Your suggestions definitely help and I will try them and let you know if I run into trouble.
Thanks,
CodingYoshi
|
|
|
|
|
Within your .NET Compact Framework application you can handle the OnSize event for your form, when the device changes orientations it will cause the form to be resized and by comparing the the width to height ratio you can determine if the device is in portrait or landscape mode.
On a Windows Mobile 5.0 or higher device you may also like to investigate the SystemState.DisplayRotation property (http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.status.systemstate.displayrotation.aspx[^])
Windows Mobile Development blog
http://www.christec.co.nz/blog/
|
|
|
|
|
Hi Christopher,
The only event I found that has anything to do with the size is Resize. However, this event is not raised when orientation changes. None of the other events look useful to me.
Any other ideas?
Thanks,
CodingYoshi
|
|
|
|
|
Hi CodingYoshi,
CodingYoshi wrote: The only event I found that has anything to do with the size is Resize. However, this event is not raised when orientation changes. None of the other events look useful to me.
Hmm what operating system/mobile device type are you targeting?
Hope this helps,
Christopher Fairbairn
Windows Mobile Development blog
http://www.christec.co.nz/blog/
|
|
|
|
|
Hi Guy
I Had doen this in my project. we want to create a custom event eith Platform Invoke.
i means like this
u create this P/Invoke mthoed
[DllImport("coredll.dll", SetLastError=true)]
private static extern int ChangeDisplaySettingsEx(
string lpszDeviceName,
byte[] lpDevMode,
IntPtr hwnd,
CDS dwflags,
IntPtr lParam);
after create a DEMODE class like this
internal class DEVMODE
{
public const short Size = 192;
private byte[] mData;
public DEVMODE()
{
mData = new byte[Size];
BitConverter.GetBytes((short)Size).CopyTo(mData, 68);
}
public byte[] ToByteArray()
{
return mData;
}
public DM Fields
{
get
{
return (DM)BitConverter.ToInt32(mData, 72);
}
set
{
BitConverter.GetBytes((int)value).CopyTo(mData, 72);
}
}
public int DisplayOrientation
{
get
{
return BitConverter.ToInt32(mData, 188);
}
set
{
BitConverter.GetBytes(value).CopyTo(mData, 188);
}
}
}
[Flags()]
internal enum DM
{
ORIENTATION = 0x00000001,
PAPERSIZE = 0x00000002,
PRINTQUALITY = 0x00000400,
COLOR = 0x00000800,
BITSPERPEL = 0x00040000,
PELSWIDTH = 0x00080000,
PELSHEIGHT = 0x00100000,
DISPLAYORIENTATION = 0x00800000,
DISPLAYQUERYORIENTATION = 0x01000000,
}
then let's crate a method , within that create object above class and call Above P/Invoke methods and pass arugs. If P/Invoke method return >0 when get success result from the OS, after get >0 u must inove ur event next line. and od ur work.
i hope this is help to you.
Thanks
Cheers
RRave
MCTS,MCPD
|
|
|
|
|
I have Erorr message when I receving data on the net in tcpclient
in pocket pc .
I want to ask how Im receiving data on the net when i client pocket pc?
Sample Code maybe help
Thanks'
|
|
|
|
|
|
|
Hi friends ....
i have one doubt with check the mobile..suppose i can check the one mobile or phone's RSSI (Received Signal Strength Indication).Where i can get that it
Mobile Switching Center(MSC) or Signal towers or something else ....
plz tell me ur suggestion also!!!
Thanks n Advance.
raju.k
|
|
|
|