|
Hi
I need some help on reading an XML document and assign to each of the nodes, its preorder and postorder position in the document.
|
|
|
|
|
With preorder traversal you visit the root node and then the child nodes, postorder traversal is the opposite you visit the child nodes and then the root node. There are many articles on the Internet that have examples of constructing algorithms to perform both kinds of traversal.
Keep It Simple Stupid! (KISS)
|
|
|
|
|
I want to retrieve data from database and then insert another database table.So i want to use a popup window with progress bar.
would u help me how i use that.........
|
|
|
|
|
What part are you stuck on?
only two letters away from being an asset
|
|
|
|
|
As far as reading from the database and reporting its progress. Look into the BackgroundWorker class of the (?)System.Diagnostic namespace. It will create a thread that will do all of the database work, and provide a percentage property so you can control a progress bar.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I googled a lot, but still didn't get exact answer....
In.NET,
When v execute an application,
Wat is compile time error and
Wat is runtime error...
Thanks...
|
|
|
|
|
Compile time errors are gernally syntax errors which get thrown before excecution and run time errors are those errors which occurs and not handeled while running the application like indexoutofbound,outofmemory etc.
rahul
|
|
|
|
|
Thanks a lot......
.....
|
|
|
|
|
Thanks a lot......
.....
|
|
|
|
|
Hi,
I want to create Workflow using C# 2.0. I need to provide UI to allow the user to define a Workflow runtime.Kindly provide me the solution for this.
|
|
|
|
|
swethasri wrote: Kindly provide me the solution for this.
Sure, but first let's discuss terms. My rate is USD$100/hour with a 40 hour minimum.
only two letters away from being an asset
|
|
|
|
|
The following is the Requirement.
The end User will define the Flow of the Process using UI.Based on that Flow result i need to create one Action.
E.g LEt us consider REcruitment Process
I have to provide UI to create Recruitment Process as a flow diagram.
I need to execute this flow diagram once defined
Based on the Result of flow Execution, i need to provide a grade to the candidate.
I dont know how i can give UI provison to the user to define a Workflow dynamically.
If anyone knows kindly let me know.
|
|
|
|
|
Great, payment in advance for the first 40 hours. Contact me off line and we can arrange details.
only two letters away from being an asset
|
|
|
|
|
I think CodeProject is not made for businiess purpose like this.
It's an platform to save others sinking boat with help them and share knowlege as well.
manoj Kumar Jha
"Learn to smile at every situation. See it as an opportunity to prove your strength and ability."
|
|
|
|
|
_KANGAROO_ wrote: t's an platform to save others sinking boat with help them and share knowlege as well.
Yes that true !
but its not true for them who are asking a dumb question by mentioning "please give me source code ", "please Send me solution ASAP ", "Its very urgent...please give the full code "..........
Before asking question here , he should read books or search google for proper solution . and he should try it himself , if stuck everybody here to help him. But not in that way he has asked. and for that case I am agree with what Mark suggested . In my case it is USD$80/Hour
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
Wrong website. Get your cash out and head to somewhere like rentacoder.com
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
cPtr = (unsigned char *) &Float1 ;
cPtr += 3;
for (k = 0; k< 4; k++)
{
*cPtr = sBuffer [BufPtr++];
cPtr--;
}
How to convert these code to C#? Thanks
|
|
|
|
|
It can't be converted, neither sBuffer nor BufPtr are declared.
If I assume sBuffer is a string array and BufPtr is an integer, then you cast it to char. Assuming also that Float1 is a char array;
char[] cPtr = Float1;
cPtr[x] = (char)sBuffer[BufPtr++];
only two letters away from being an asset
|
|
|
|
|
Well, first of all, what are we converting it from? Is this C code? I'll just assume that it is...
As Mark said, without the definitions, one can't make a definitive conversion.
The .NET equivalent of an unsigned char is the Byte data type. If Float1 and sBuffer are byte arrays and BufPtr is an integer, you copy the data like this:
for (int i = 3; i >= 0; i--) {
Float1[i] = sbuffer[BufPtr++]
}
If Float1 is a single precision floating point number (Single), you use the BitConverter class to convert it to an array of bytes:
byte[] data = BitConverter.GetBytes(Float1);
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Here are the declaration:
int i, k, BufPtr;
unsigned char *cPtr;
float Float1;
unsigned char sBuffer []
And the purpose of these code is to get the value of Float1.
Thanks
|
|
|
|
|
If you want the value of Float1, just use the Float1 variable. Example:
Console.WriteLine(Float1);
If you want the memory representation of the variable as a byte array, read my previous post.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
.NET 3.0 is an extension to .NET 2.0, not a replacement. Meaning, the version that supports 2.0 also supports 3.0.
I are troll
|
|
|
|
|
Hi.
Does any one know, is there any limit to the buffer size that could be sent at once with the NetworkStream.Write through a socket?.
I'm sending a byte array with a length of 16890, and receiving only a few hundred of them.
networkStream.Write(buffer, 0, buffer.Length);
Please help.
Thanks.
|
|
|
|
|
Hi,
I think you can send as much as you like, if not the Write method should/will throw an exception; however when the network (hardware definition and/or protocol) is somehow limited, the protocol stack and/or driver will chop it into several packets.
Example: Ethernet packets are limited to some 1500 bytes (this relates to the collision detect mechanism,
the maximum length of a connection, and the bit rates).
I doubt a receiver will put them together again, so sending 16890 bytes in a single write may result
in some 11 packets being transmitted and received. That is one of the reasons a Read method always
returns the numbers actually read.
modified on Sunday, January 11, 2009 6:55 PM
modified on Friday, June 10, 2011 12:34 PM
|
|
|
|