|
Thanks for all replays.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hi,
I need to know how I can display bytes received/sent (maybe using WMI), if I have more than one connections open simultaneously, say a GPRS dialUP, and a LAN (or even two LANs), and need to get explicitly, of which connection the information belongs to.
Also I needed to ask whether the bytes received/sent info is what actually is sent over the transmission medium(ofcourse in terms of packets and bytes), i.e compressed and encrypted with headers, or if it represents the actual size of the packet(i.e just the data + headers).
|
|
|
|
|
WMI wont tell you that, you need a network sniffer. Look here on CP for a WinPCap wrapper for .NET.
|
|
|
|
|
Hi !
Yeah thanks leppie, i have been searching for this in wmi, but I couldn't find much on what I needed to do. I guess, sniffing would be the right choice then!
Thanks alot!
|
|
|
|
|
I need to replace this caracter " to nothing in my database but its not work.
her som code.
SqlCommand cmd1 = new SqlCommand("update c5 set name= replace(name,'"',''), conn);
but its make error on visual studio but in micrsoft Sql Server managment its work fine.
Error:
Error 2 Too many characters in character literal
) expected
; expected
; expected
Hope i can help me..
|
|
|
|
|
Stop and think about what you're telling the compiler. How does it work out that " is meant to be a quote within a string, and not the end of a string ?
\" is a quote within a string, or "" if you put @ at the front, and \ then means \.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello,
how can i launch multiple exe file using only one process
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
Maybe split the parent process into several threads and launch your child processes from there?
|
|
|
|
|
System.Diagnotics.Process.Start("@C:\\Process1.exe");
System.Diagnotics.Process.Start("@C:\\Process2.exe");
System.Diagnotics.Process.Start("@C:\\Process3.exe");
System.Diagnotics.Process.Start("@C:\\Process4.exe");
System.Diagnotics.Process.Start("@C:\\Process5.exe");
Sure you could have an array of strings, and iterate through them, or something?
-= Reelix =-
|
|
|
|
|
You can load your exe's in diffrent AppDomain under one process.
The above solution is only applicable, if your exe all are .NEt compatible.
Regards,
Vythees
Miles to go before sleep...
|
|
|
|
|
With only one process and process.start?
string batchFilePath = @"C:\mybatch.bat";
File.WriteAllText(batchFilePath, string.Format("start process1.exe{0}start process2.exe{0}start process3.exe{0}start process4.exe", Environment.NewLine));
using (Process batchProcess = new Process())
{
batchProcess.StartInfo.FileName = batchFilePath;
batchProcess.Start();
}
-Spacix
All your skynet questions[ ^] belong to solved
I dislike the black-and-white voting system on questions/answers.
|
|
|
|
|
How i can change the Tab form?i would do a tab control but i would change the tab form and i would do the same of visual studio tab.
|
|
|
|
|
Do you mean you want to change how a tab looks ? You need to owner draw it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
please you can help me with change the Tabcontrols Header Item form? how i have to draw,because i override the onpaint but i can´t change.
|
|
|
|
|
|
Hi all,
I know how to use progress bar with background worker by simply use for loop in doWork event. But how i can i use it to perform the job asynchronously ? What i mean is i have a task with a large coding, and wish to use background worker to perform the percentage of progress. Any idea or tips are welcome.
thanks in advance
cocoonwls
|
|
|
|
|
cocoonwls wrote: perform the job asynchronously ? What i mean is i have a task with a large coding, and wish to use background worker to perform the percentage of progress
Why do you want to use asynchronous methods ? What's the problem in running the large coding in BackgroundWorker ?
|
|
|
|
|
I don't know what you mean ?
Backgroundworker can send a message reporting progress to the main thread, but I suspect you know that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi christian,
Thanks for remind me of the reporting progress My problem was solve.Thanks guys.
|
|
|
|
|
*grin* glad to help
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
<br />
<br />
Object obj = null;<br />
if(obj == null)<br />
Console.Writeline("null");<br />
<br />
if(obj != null)<br />
Console.Writeline("not null");<br />
<br />
In above which will execute faster. == or !=
Just curious...
Regards,
Vythees
Miles to go before sleep...
|
|
|
|
|
Does == or != has much vertical differences?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I imagine they would be the same.
|
|
|
|
|
vytheese wrote: In above which will execute faster. == or !=
Considering that your PC probably runs at 2+ billion clock cycles per second, and such an operation is so trivial compared to other instructions that could be issued, does it really matter? Seriously, the jump that's going to happen after the conditional check is going to cost more than the check because of the way processor pipelining works. And the jump is going to happen regardless of the type of check you are performing.
In short you are over optimising.
Finally, just so you get your question answered - They cost the same in terms of processor cycles.
|
|
|
|
|
It's like asking you (As a Human Being)
Which can you solve faster:
1 + 1
or
5 * 5
They're both SO easy (I hope...) that the time it takes you to do the calculations is SO small, the time taken is actually negligible in the actual scheme of things (The time taken from being given the question, to producing an answer), even though the second question (Being multiplication, with higher numbers) is obviously harder (Relatively...)
To Sum Up:
It doesnt really matter
-= Reelix =-
|
|
|
|