|
If you just want to draw charts you can
1. make your own library
2. use an external library.
You could use Dundas Charting (you've got to pay for this)
or you can use something like this: charts[^]
|
|
|
|
|
Unfortunately you need visio installed to use the Visio COM Interop Objects.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
hi
I have a simple XML file with few nodes
in the file I store values for fields in my DB
how can I send the file to my DB and update my tables ?
|
|
|
|
|
Start by posting in the correct forum.
|
|
|
|
|
Does anyone know a way how to deserialise and edit the acl values represented here?
|
|
|
|
|
From time to time I would like to have the ability to copy a file through the network to some of our remote locations but control the bandwidth because they have much slower connections. I've used nullsoft's nscopy before, but figured this would be a good learning expierence if I could create my own app to be more fine tuned to my environment. I have a general idea of what I need to do, but am not sure where to start. Looking at the system.IO.file.copy method it doesn't look like there's an overload that controls bandwidth. Then I started to think maybe I need to take the file and create a file stream and pass that through the network somehow, but that's where I get stuck. Has anyone tried doing something like this before? I'm just looking for a nudge in the right direction.
Thanks!
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
You're already moving in the right direction
You'd indeed start out with a streamreader and a streamwriter. Instead of filling the stream at once, fill it block by block of data. This will result in a read/write loop that you can throttle if desired.
There's a handy sheet-cheat here[^].
I are troll
|
|
|
|
|
AH! Thank you very much for the help and the sheet-cheat eddy! I continued to get stuck because I was aproaching the task thinking I could handle the bandwidth speed from the network side and not the stream reader!
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
You're welcome
I are troll
|
|
|
|
|
Ill try keep it short, Usually when I write networking applications, I spawn a new thread every time a client connects to the server. This works fine for my small time applications, but how do people who deploy large scale servers handle client communications? If you have thousands of users, for example a simple busy irc server, surely you cant spawn threads for all the users, what other methods are there?
Andy
|
|
|
|
|
If I remember correctly IRC uses UDP, so there's only a few inbound connections, and a big list that it broadcasts out to with all the clients. Usually with an upstream server in that list so the other server can handle it's list of clients as well. I do know several online games use something similar to handle their loads. Login servers redirect each connection to a different communication server, the communication servers have a private link between them to relay data, while each one broadcasts data out to it's list of clients. Leaving just a few connections from the comm servers going back to the application servers.
The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.
|
|
|
|
|
Hello all
I deploy my application using clickonce; When upgarde a new version, it is installed to client pc.
I want to know if the click once downloads each time all files existing for this version on the server on only the modified files; I mean if a dll didn't changed and i publish the application and put it on the server; is this dll re downloaded from the server or it it is copied from the previous version existing on client machine.
if this isn't the case; Can anyone help me to avoid downloading files not modified to client machine.
Best Regards
|
|
|
|
|
|
The code shown below is with which im messed up............
The problem is 'thread1' and 'thread2' are working simultaneously but the output is not in the correct format. Please check this out and please help with proper solution. I want both load_1() and load_2() to be shown properly. it is very urgent. Waiting for your reply!!!
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Loading
{
class loading
{
public static void load_1()
{
Console.SetCursorPosition(0, 2);
for (int l = 1; l <= 50; l++)
{
Console.Write("\\\b");
Thread.Sleep(50);
Console.Write("|\b");
Thread.Sleep(50);
Console.Write("/ \b");
Thread.Sleep(50);
Console.Write("\b");
Console.Write("|");
}
}
public static void load_2()
{
for (int load = 0; load <= 100; load++)
{
Thread.Sleep(10);
Console.SetCursorPosition(25, 4);
Console.Write("{0}%", load);
}
}
static void Main(string[] args)
{
Console.SetCursorPosition(16, 4);
Console.Write("LOADING:");
Thread thread1 = new Thread(new ThreadStart(load_1));
Thread thread2 = new Thread(new ThreadStart(load_2));
thread1.Start();
thread2.Start();
thread1.Join();
thread2.Join();
}
}
}
LINTO
|
|
|
|
|
linto_11 wrote: it is very urgent.
really? trying to fake an exam? snatching a job?
If noone else does I'll answer tomorrow.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Mr. Luc Pattyn, actually im searching answer for that code since 2 days. If u can give me the answer it would be very nice of you!!
LINTO
|
|
|
|
|
I would tell you the answer but it will takes me a few days to GUESS what your format is....
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
yeah mr. Pattyn it would be very nice of you
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
I don't have too much expirence with writing to the console, so I'm having a hard time picturing what its actually doing. Assuming the load 2 is working and staying in one place, but load 1 is not, could it have something to do with the fact that on load1 you are not resetting the cursor position each time the for loop "ticks" but are in load 2? I'd imagine that load one goes through the loop the first time correctly, but then the next 50 times through it starts pushing the cursor to (0,3) (0,4) ect.
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
No, actually both load1 and load2 are workin simultaneously, but while execution the load2 is goin on executing while load1 is workin in the background! this is what irritating me!!
LINTO
|
|
|
|
|
Ah. I'm not really sure what the goal of the program is, but whenever I've done multi-threading apps I generally run into security and cross-threading errors. I've found (at least from a GUI) that it's sometimes easier to create an event handler and then fire the event from the background woker thread. I believe you still need to invoke the event though. Here's a good article on multi-threading: C# Multithreading
Hope it helps
"You're damned if you do, and you're damned if you dont" - Bart Simpson
|
|
|
|
|
Both the threads are perfectly working!!!! The problem lies with the cursorposition.
Because the load2 function changes the cursor position every time.
Have a Happy Coding.....
|
|
|
|
|
hello sir,
can you please tell me, How to run two threads simultaneously? It is a bit urgent!
LINTO
|
|
|
|
|
Don't bother, we will write the code and send it to you for free.
Ok, enough sarcasm. Here is where you start.[^]
Read that, get your hands on it. When you have issues or need more help on a particular area of the multithreading, post your question here.
|
|
|
|
|