compact-framework

System.MissingMethodException

我只是一个虾纸丫 提交于 2019-12-13 07:28:13
问题 I'm developing a .NET CF 3.5 application on WinCE6 that will build an exe an some dlls. I have defined an example class like this in a class library project: using System.ComponentModel; using System; namespace Utils { public static class Test { public static void runTest() { Exception e = new Win32Exception(0, "CreateToolhelp32Snapshot error."); } } } From my main executable project I will call the runTest() method. Everything is well at compile time. But at run time the following exception

WebService (CF 3.5) and Class Inheritance?

ぐ巨炮叔叔 提交于 2019-12-13 07:28:04
问题 Merged with .NET Compact Framework 3.5 Serialization Problem with Derived Classes. I use a simple WebService returning a Test Class as Response. The Test Class has a Base Class containing an int and a string field. The Server sets these two fields of the Base Class. If i use the WebService on a PC (.Net Console Application) eveything works fine (the int and string field of the Base Class are filled) - but under CF 3.5 the fields of the Base Class are always null. Does there is a limitation

Registering DLL on windows mobile 6

扶醉桌前 提交于 2019-12-13 07:24:30
问题 I have a DLL file that contains an ActiveX control that I need to register it programmatically by code. here is the code I am using to register that DLL file but it keeps giving me "The system cannot find the file specified" when calling the Start method, And I do not know why regsvrce.exe is not found, should I change current directory or something, please help. public static void registerDLL(string dllPath) { try { //'/s' : indicates regsvr32.exe to run silently. string fileinfo = "\"" +

CF.NET SMTP/POP3 clients

徘徊边缘 提交于 2019-12-13 06:41:52
问题 I'm working on an order entry application targeted to windows mobile devices. I need to be able to send and receive emails from within the application, but without using pocket outlook (this is a customer requirement). I see that the .net mail classes are not available for the compact framework. So I need to look elsewhere. I found 2 interesting libraries: CSLMail and MooseWorks' Email Controls. But none is able to deal with SSL connections, and this is a mandatory requirement I've found a

How could the existence of pseudo debug strings cause a difference in functionality?

依然范特西╮ 提交于 2019-12-13 06:17:59
问题 If I have these sprinkled throughout my code: MessageBox.Show("See a format exception yet? #1");//todo: remove (there are 7 of these, numbered from 1..7, most of which display (1,2,5,6,7)) I end up with one err msg (" Exception: Cannot find table 0 Location: frmFunction.SetPlatypus ") If I comment out all of those, I end up with a different err msg (" Exception: FormatException Location frmFunction.getDuckbillRecord ") How could this be? Shouldn't the existence/display of such an information

How to identify the storagecard removed notification of smartphone devices

情到浓时终转凉″ 提交于 2019-12-13 05:17:18
问题 I am using windows mobile device, i want to know how to get notification if the storage card is removed from the device.I have DLL it has all the imported methods which send messages if the card is added or removed, but this case works fine if the DLL is in the device memory.If the application is installed in storage card, then DLL will be in Card as soon as card removed,the DLL goes out and i will not get any information from the phone that card removed or some thing like that.i am

Is There a Way to Remove the Delay between an Interspersed Login form and the Main form?

邮差的信 提交于 2019-12-13 04:47:16
问题 Following the suggestion here to create my login form in the project's Main method like so: [MTAThread] static void Main() { AppDomain.CurrentDomain.UnhandledException += Unhandled; frmLogin loginForm = new frmLogin(); if (loginForm.ShowDialog() != DialogResult.OK) { // If they hit "Close" just use the default values for now (for testing) HHSConsts.userName = "duckbilled"; HHSConsts.pwd = "platypus"; HHSConsts.currentSiteNum = "Packers20Seahawks19"; } else { HHSConsts.userName = loginForm

webbrowser does not display page until an event occurs

点点圈 提交于 2019-12-13 04:34:33
问题 I am using the .net compact framework webbrowser control on a Windows CE device. The .Net application has a web server running on the device under a different thread. The webbrowser interacts with the web server as per normal browser functionality. The problem is that when pages are requested the screen does not always display until there is some browser event. An example is if I put a Javascript alert(...) statement within the page's script. The screen will blank and the message will display

Create Event on Singleton Class

痴心易碎 提交于 2019-12-13 04:25:48
问题 I have a Windows Mobile 6.5 (.net cf 3.5) that uses a singleton class which follows this pattern: public sealed class Singleton { static readonly Singleton instance=new Singleton(); // Explicit static constructor to tell C# compiler // not to mark type as beforefieldinit static Singleton() { } Singleton() { } public static Singleton Instance { get { return instance; } } } reference My class used to collect GPS data from the Intermediate drive. What I want is to create an event on the

The type or namespace name 'SqlServer' does not exist in the namespace 'Microsoft.Synchronization.Data'

情到浓时终转凉″ 提交于 2019-12-13 03:54:02
问题 This is a strange problem I'm having, I've downloaded the WebSharingAppDemo sample from Microosfts website but when I try to compile it in Visual Studio 2008 I get the following error: The type or namespace name 'SqlServer' does not exist in the namespace 'Microsoft.Synchronization.Data' When attempting to use the Microsoft.Synchronizaqtion.Data.SqlServer. Any ideas what might be causing this? 回答1: You probably need to add a reference to Microsoft.Synchronization.Data.SqlServer Right-Click