|
Um, not what i want. I don't want to get the current process, i want to get the CPU and memory usage. I have no interest in the current process.
|
|
|
|
|
This is a chinese graph software to monitor ,application in industry and electric power.Its site is "http://www.visual-graph.com"
welcome to visit.
|
|
|
|
|
Hi,
my question is simply. can i create a gps software (c#) for this phone?
i think i can because there is a N70 version that cames with a gps software, my didn´t came with that (less expensive) but i think that it maybe has some hardware prepared for that.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Is it a Microsoft platform phone ?
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
OS windows platform? no no no
has nokia OS.
other version (of same phone) has gps software.
i think (not sure) that i can install it.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
nelsonpaixao wrote: has nokia OS
It uses Symbian OS. You can't run C# programs in that. Use Symbian C++ for development.
|
|
|
|
|
The code you write in C# gets compiled into CIL[^] (formerly known as MSIL). The CIL code needs the .Net Framework (the .Net Compact Framework in this case) to run. The .Net Compact Framework requires Windows Mobile. And as far as I know, Nokia phones don't support Windows Mobile.
However, you can write C++ to target Symbian OS Symbian Developer Network[^]. You can also write Java as Symbian OS supports it.
Eslam Afifi
|
|
|
|
|
thanks for the posts
better give up on that for now
i ll start training on something else
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hello All,
I am having some trouble taking data from my Dataset and transforming into an XML document that has the proper formatting. I'm hoping someone here may have had similar trouble in the past.
(All names have been changed to protect the innocent )
What I want get when everything is said and done is the following:
<ResidentTransactions>
<Account>
<Customer>
<ServiceTransactions>
<Transactions>
<Charge>
<Detail>
<Description>Trash pick-up</Description>
<TransactionDate>2008-08-01</TransactionDate>
<ChargeCode>trash</ChargeCode>
<CustomerID>#########</CustomerID>
<Amount>12.00</Amount>
<Comment>Trash (08/2008)</Comment>
<PropertyPrimaryID>TestProp1</PropertyPrimaryID>
</Detail>
</Charge>
</Transactions>
<Transactions>
.
.
.
</Transactions>
</ServiceTransactions>
</Customer>
</Account>
</ResidentTransactions>
What I am getting is basically ignoring all the nesting, and just grabbing the innermost table with the actual data:
<ResidentTransactions>
<Detail>
<Description>Trash pick-up</Description>
<TransactionDate>2008-08-01</TransactionDate>
<ChargeCode>trash</ChargeCode>
<CustomerID>########</CustomerID>
<Amount>12.00</Amount>
<Comment>Trash (08/2008)</Comment>
<PropertyPrimaryID>TestProp1</PropertyPrimaryID>
</Detail>
<ResidentTransactions>
The code below is what is loading the data into the dataset:
SqlDataAdapter Da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
ds.ReadXmlSchema(@"C:\DEV\Schemas\BillingData.xsd");
Da.Fill(ds, "Detail");
When writing the XML I do the following:
StringWriter source = new StringWriter();
XmlDocument SourceXml = new XmlDocument();
XmlDocument RetXml = new XmlDocument();
ds.WriteXml(source,XmlWriteMode.IgnoreSchema);
SourceXml.LoadXml(source.ToString());
I believe it may have something to do with the fact that the outermost elements don't contain any data, they just contain the sub elements. When I render the XML, those "tables" in the dataset don't actually have any data to grab. In the last few days I haven't been able to come up with a solution though, and I really don't want to piece together a big string unless I have to.
Anything that may point me in the right direction would be greatly appreciated.
Thank you,
-Ian Jacobs
[EDIT] Removed an ID code I missed on the 1st pass
|
|
|
|
|
XML is not suppose to be pretty, just correct and readable. If you want to pretty-format the XML, you have to do it yourself.
|
|
|
|
|
|
I don't understand why the CASE statements like this don't work. Why can't I check for greater than?
private int iGrade = 85;
private char cLetter = ' ';
switch (iGrade)
{
case > 90:
cLetter = 'A';
break;
case >; 80:
cLetter = 'B';
break;
case > 70:
cLetter = 'C';
break;
default:
cLetter = 'F';
break;
}
Everything makes sense in someone's mind
|
|
|
|
|
KMAROIS wrote: Why can't I check for greater than?
Because Switch Case[^] doesn't work like that.
You can use if else [^]instead.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
In VB you can do this but not C#. I had a search around and found this[^] which gives this functionality - pretty interesting.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
|
Blue_Boy wrote: Correct code:
Not really.
Blue_Boy wrote: case iGrade>90:
You can't do like that. The value in the case label has to be constant, and of the same type as the value in the switch.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Sorry but someone else had post unhelped this answer, I didn't post by myself.
Sure I will delete it.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
If you don't know C#, always compile your answer before giving it. This won't build.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Sorry but someone else had post unhelped this answer, I didn't post by myself.
Sure I will delete it
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
|
Sorry but someone else had post unhelped this answer, I didn't post by myself.
sure I will delete it.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
KMAROIS wrote: case >; 80:
is this a new syntax introduced in C#?
|
|
|
|
|
I'm exporting data from a datagrid to an excel spreadsheet.I want the spreadsheet to open and display the data when the data is exported(when you click button export).How do i go about making that happen.Please help
|
|
|
|
|
Twyce wrote: I want the spreadsheet to open and display the data when the data is exported(when you click button export).
Once you export the data and file has been written, open the Excel application passing the recently written file name.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hi,
can you please tell how you are exporting data from datagrid?
I need it urgently.
I donot have MS office installed on server
|
|
|
|