windows-mobile

My sample app is getting crash while registering to Filechangeinfo notification

一个人想着一个人 提交于 2019-12-02 14:55:18
问题 public partial class Form1 : Form { [DllImport("coredll.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, IntPtr dwNewLong); [DllImport("coredll.dll")] static extern IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam); [DllImport("coredll.dll")] public static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex); //public struct tagSHCHANGENOTIFYENTRY //{ // [MarshalAs(UnmanagedType.SysUInt)] // public ulong dwEventMask; // [MarshalAs

Windows Mobile App - Play Stream Over MMS Protocol?

不羁的心 提交于 2019-12-02 11:13:33
NOTE: This question is being reasked because I accidentally clicked Community Wiki in the previous one, and obviously that didn't provide enough incentive in the form of reputation for people to answer it. Here is a link to the old question, please do not duplicate those answers (they weren't exactly helpful anyway): Link to Original Question Now here's the question... I'm trying to write a Windows Mobile app targeting Windows Mobile 6.x that will stream an internet radio stream delivered via MMS protocol (just one feature among other things). Does the .NET Compact Framework have built-in

Invalid Credentials on MapLocationFinderResult uwp c#

痴心易碎 提交于 2019-12-02 08:11:19
I am having a strange problem with the use of MapLocationFinder. I am using MapLocationFinder to retrieve longitude and latitude based on string address: string address = ""; // Any address here var locFinderResult = await MapLocationFinder.FindLocationsAsync(address, new Geopoint(new BasicGeoposition())); After this, I use Laucher to start "drive to" application and get navigation map: var geoPos = locFinderResult.Locations[0].Point.Position; var url = $"ms-drive-to:?destination.latitude={geoPos.Latitude.ToString(CultureInfo.InvariantCulture)}&destination.longitude={geoPos.Longitude.ToString

Maintain the aspect ratio of an image?

女生的网名这么多〃 提交于 2019-12-02 07:58:57
问题 I am using pictureBox to show images which are received from server but my problem is that picture box in compact framework has only three Size Modes StretchImage, Normal, CenterImage the pictures i am getting are generally bigger in size so i have to use StrecthImage mode. But then the aspect ratio is maintained so the images shown become distorted. So is their anyway to come out of this problem ? 回答1: finally i found answer for my question which is here----- float actualHeight = myImg

OpenFileDialog does not browse the folders under .NET CF

余生颓废 提交于 2019-12-02 07:32:13
问题 I have an WinMo app and I would like to open a file from the storage card. The file is NOT in the root but within the folder structure. I thought OpenFileDialog would do the trick just as it does under regular .NET. But it does not offer me to navigate over the folders. I looks really lame. Or am I just outstandingly stupid? 回答1: The OFD in the CF, to put it bluntly, sucks. It has the ability to only browse a few select folders, and as a developer you have no control over what they are. To

Controlling form elements from a different thread in Windows Mobile

荒凉一梦 提交于 2019-12-02 06:52:51
Trying to get a thread to change form controls in Windows Mobile. Throws an unsupported exception. Does this mean it cant be done at all? If not, how do I go about this? Forms are created in the Parent/Main thread then a thread is created to do some work in the background but I want to make it so the Background thread can update the form to show its completed... You cannot access GUI items on a non-GUI thread. You will need to determine if an invocation is required to the GUI thread. For example (here's some I made earlier): public delegate void SetEnabledStateCallBack(Control control, bool

JDBC support on J2ME

流过昼夜 提交于 2019-12-02 06:33:47
Currently I am trying to run an existing java application on a Windows Mobile 6.1 device. The java application had been developed for server side and uses JDBC. My problem is that the Java application uses the java.sql.DriverManager which is not supported either by J9 runtime or by any CDLC/CDC implementation. After doing a lot of research it seems that there is not a standard way to do that. The JSR 169 does not support this class as well. So, I was wondering whether any of you have similar problems and if you have to mention any appropriate software stack that basically support the java.sql.

Maintain the aspect ratio of an image?

喜夏-厌秋 提交于 2019-12-02 05:47:39
I am using pictureBox to show images which are received from server but my problem is that picture box in compact framework has only three Size Modes StretchImage, Normal, CenterImage the pictures i am getting are generally bigger in size so i have to use StrecthImage mode. But then the aspect ratio is maintained so the images shown become distorted. So is their anyway to come out of this problem ? finally i found answer for my question which is here----- float actualHeight = myImg.Height; float actualWidth = myImg.Width; float imgRatio = actualWidth / actualHeight; float maxRatio = (float

OpenFileDialog does not browse the folders under .NET CF

巧了我就是萌 提交于 2019-12-02 04:38:33
I have an WinMo app and I would like to open a file from the storage card. The file is NOT in the root but within the folder structure. I thought OpenFileDialog would do the trick just as it does under regular .NET. But it does not offer me to navigate over the folders. I looks really lame. Or am I just outstandingly stupid? The OFD in the CF, to put it bluntly, sucks. It has the ability to only browse a few select folders, and as a developer you have no control over what they are. To browse all folders you need to either roll your own dialog or get a third-party one . 来源: https:/

How to connect to a Webservice from a Windows Mobile Device 6.0

元气小坏坏 提交于 2019-12-02 04:12:22
问题 I would like to create a windows mobile application (6.5) which connect to a webservice via GPRS hosted on my server at home. The webservice was tested successfully using a windows application. Can someone please guide me what should I do because I have no idea of how to proceed. Some code will be very appreciated. thanks 回答1: If the service is a standard XML or WCF service, then simply right-click on the "References" node in the project's tree and select "Add Web Reference" just like you