|
The OpenNETCF Smart Device Framework 1.4[^] contains an implementation of the System.Diagnostics.Process class, which is missing from Compact Framework 1.0. It's called (unsurprisingly) OpenNETCF.Diagnostics.Process .
.NET Compact Framework 2.0 does work on Windows Mobile 2003. For other devices based on CE 4.2, you need CF 2.0 SP1. CF 2.0 includes System.Diagnostics.Process .
(Oh, and you want Process.Start .)
|
|
|
|
|
Would anybody advise on the following code why it did run correctly in Windows XP but did not run correctly in Windows Mobile ?
I am writing a C# program on Window Mobile 5.0 device to parse the content of a XML file but exception raised when the program started.
The content of the XML file is:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE MessageCenter [
<!ENTITY message-center-connection SYSTEM
"MessageCenterConnection.xml"?>
]?>
<MessageCenter>
&message-center-connection;
<other-settings>
.........
</other-settings>
</MessageCenter>
The contain of the MessageCenterConnection.xml is
<connection>
<host>localhost</host>
<port>3550</port>
</connection>
The C# code used to parse the XML is:
protected XmlDocument xmlDoc = null;
xmlDoc = new XmlDocument();
try
{
XmlTextReader xmlTextReader = new XmlTextReader(xmlConfig);
xmlTextReader.EntityHandling = EntityHandling.ExpandEntities;
xmlDoc.Load(xmlTextReader);
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
when the program was run under Windows Mobile, the following message was
displayed:
System.NotSupportedException: NotSupportedException
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode()
at System.Xml.XmlLoader.LoadDocSequence()
at System.Xml.XmlLoader.Load()
at System.Xml.XmlDocument.Load()
at Symbol.Application.Framework.Configuration.ConfigTemplate.LoadConfigSettings()
at Symbol.MessageCenter.ConfigMessageCenter.ReadConfigFromXML()
at Symbol.MessageCenter.ConfigMessageCenter..ctor()
at Symbol.MessageCenter.Configuration..ctor()
at Symbol.MessageCenter.MessageCenter..ctor()
at Symbol.MessageCenter.Program.Main()
If I removed the
<!DOCTYPE MessageCenter [
<!ENTITY message-center-connection SYSTEM
"MessageCenterConnection.xml"?>
]?> and
&message-center-connection;
from the XML, the program run normally also in WM5.0.
I placed the program file and the XML in the following folder structure:
|--Application
|--Configuration
|--MessageCenter.xml
|--MessageCenterConnection.xml
|--MessageCenter.exe
|
|
|
|
|
The .NET Compact Framework is more limited than the full .NET Framework. It has to be, to fit in the device's limited storage memory. Compact Framework 1.0 was around 2.5MB versus .NET 1.1's 23MB (and CF 1.0's installer was not compressed, while the desktop framework was); CF 2.0 is larger, at 5.4MB (uncompressed) while .NET 2.0 is 22MB.
(Compact Framework is also available as a component to include in the device's ROM but this is also quite limited.)
I'm afraid it looks like Compact Framework simply doesn't support external entities (which is why you got a NotSupportedException ). You'll have to come up with a different way to handle this.
|
|
|
|
|
Hi Chris
Thanks for your advice. This is also what I wondered.
This is not the first time I hit such situation. Some of the .NET classes
,which are stated be supported under CF, turned out cannot be successfully
implemented under the WinCE device. I thought that MS should making
her documents clearer on the limitation.
Regards
Antony
|
|
|
|
|
Hi,
is it possible to develop in a C# own keyboard for Pocket PC with Windows Mobile 5.0? If yes, could anyone give me advice?
Marek
|
|
|
|
|
Keyboards are COM components and therefore have to be developed in C++. I have done it but it's not particularly easy. See the DvorakSip sample in C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\ATL\Dvoraksip and Doug Boling's book "Programming Windows CE .NET 3rd Edition" (I don't have this edition but the previous 2nd edition included some information about Input Methods, as they're known).
|
|
|
|
|
|
Hi to all
I am new to this Pocket PC environment. I need to create a stock ticker on Pocketpc which displays the stock values on that ticker. What are the things that I need to know to create a ticker using WinCE or atleast using .Net framework. This is very urgent.
Thanks
Rani.
|
|
|
|
|
You would do it almost exactly the same way you would with a normal (desktop) stock ticker in .NET. Your task doesn't require any special knowledge for PPC development since you're planning to use .NET. I would look around the web for ticker projects people have done using the regular .NET framework (as opposed to the .NET Compact Framework). It will almost certainly work identically or close.
You will probably be using the HttpWebRequest object or something related (though the WebClient class is not available on the compact framework). You can see an example of grabbing the HTML content from a Uri here: http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.getresponse(VS.80).aspx[^]
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Hi,
I am doing a Mobile application in J2ME. I want to download a picture from a servlet to the Mobile application.
Please help me to do this part. How to provide the link to the servlet in the code.
Also, Please give me information on whether NetBeans IDE have provision to access the Web. If so what are the setting options.
Regards and Thanks..
Vichitra M
-- modified at 2:56 Tuesday 13th February, 2007
|
|
|
|
|
1. envrionment PB4.2 && CEPC && eboot via enthernet
2. trouble shoot
I built an OS based on tiny kernel, and i couldn't enter "CEPC". so I add display support and network driver(my hardware is REALTEK8139). and build it again. But it is still stop at "*TCBTimeout: NOT Restarting TCBTimer", I type gi proc, and it show that there are 5 processes running.
3. my purpose
What compenonts at least should I add to enter the CEPC(GUI)?
One day a pretty girl asked me:"Do u think you are handsome?" "I don't think so!".She gave a slap in my face:"Why lying?"...
|
|
|
|
|
You'll get better responses on the Microsoft Windows CE Platform Builder newsgroup. I don't think there are many here that develop their own platforms.
|
|
|
|
|
Hello everyone,
Are there any performance profiling tool for Windows Mobile? Either for Windows Mobile 2003 or for Windows Mobile 2005 is ok (either simulator or real device is ok). Any reference quick start turorials?
I simply want to generate a result like gprof generated on Linux, like the percentage of each function consumed (and sorted from the most time consuming function to the least time consuming function) and the related consumed time stamp.
thanks in advance,
George
|
|
|
|
|
Hi
I have been attempting to implement a WSE3 secured web service which is invoked by my PDA based application using the compact framework however I cannot get my PDA based app to compile due to the following object not existing:
System.Threading.SendOrPostCallback
Is the compact framework not compatible with WSE3 or am I doing something wrong, incidentally the error actualy occurs within the Reference.cs file which is created by VS when referencing the web service.
What is the best method to secure web services that are to be invoked by a PDA, originally we were thinking of HTTPS and our own username/password/pinnumber combination being passed through within each method call???
Thanks in advance
Andy
|
|
|
|
|
I have my C# project which runs on a PDA device. How to I check on the device which version of OpenNetCF it is using.I mean which file to check for and on which location on the PDA? Or is it only on the local machine on which I compile my code. But I see that a code which I have compiled on my machine, runs well on one PDA, but does not on the other PDA and gives the following exception
"An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll"
|
|
|
|
|
I am trying to run my C# application on my PDA device (its a Symbol device) and I get this exception
"An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll
Additional information: Method not found: Dispose
Symbol.Generic.Controller, Symbol, Version=1.0.5000.1, Culture=neutral,
PublicKeyToken=68EC8DB391F150CA. "
I am not understanding what is this and on which function it is occurring.
Checked on google and found that "MissingMethodException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted method of an assembly that is not referenced by its strong name"
Can anyone help me incase they have encountered similar issue. Also please tell me what should be the possible solution to this issue
|
|
|
|
|
Looks to me like you are trying to use an assembly that was created to work in the .NET Framework, but not in the .NET Compact Framework. That's just a guess though. The error message is confusing because it says that it occurred in 'System.Windows.Forms.dll', but the apparent missing method is Dispose which is found in 'Symbol.Generic.Controller'. Are you calling Dispose in your form on a Symbol.Generic.Controller object? If so, trying removing it and see if that helps. It seems that you may have inadvertently compiled your application against a normal .NET Framework library which has the Dispose method, but as soon as you try to run it on the PDA which has a different version of the Symbol assembly, it croaks because it doesn't support that method.
This would also explain why it's a runtime exception and not a compile time failure.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
Which Protocol used for sending SMS PC to Mobile ?
Pavan Pareta
|
|
|
|
|
Similar to email, SMS requires a server that will send the message for you. This makes it more of a service rather than a protocol. Google has an SMS service that you can use to send messages through. The site can be found here: http://www.google.com/sendtophone?client=navclient-ffsms[^]. You can connect to the service programmatically using some sort of web client. Alternatively, there are sites out there that will allow you to connect to their SMS service for a fee.
-Matt
------------------------------------------
The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
|
|
|
|
|
hi i m looking for this software
TabletPC 1.0 Advanced Remote
please let me know if any of u having this software
shailu178@gmail.com
|
|
|
|
|
i m looking for this software please help me
shailu178@gmail.com
|
|
|
|
|
I am new to mobile development. I want to start an exe in the '\Program Files' folder of my mobile device(I m using a Symbol device) from my C# application. Can anyone tell me what command to use in the code.. I see that to start .wav files there is 'Symbol.Audio.Controller' available. Is there any such thing for exe files.
|
|
|
|
|
Hi,
May be you can have a look at the Process and PrcessStartInfo class..I think you first create a ProcessStartInfo class, passing the constructor, the name of your exe to be executed with its full path as first parameter, and the arguments, if any, for the exe as second parameter. Then, create the instance of Process class, and call the Start() method, passing the instance of ProcessStartInfo as parameter.
Hope it helps.
Ashvin Gunga
|
|
|
|
|
You can use the CreateProcess api to start an exe. There are many examples of how to do this on the web.
|
|
|
|
|
Does anyone know how to access those "outlook" data files - like I have seen PIM software like Pocket Informant and Agenda Fusion does...
I want to make a PIM "add-on/side-application" that can read write to especially the tasks and calendar data files.
Any documentation available or will this have to be a "hack" job? Where to look?
Rgds
PM
|
|
|
|