|
What are other ways to do ping in vb.net or c# other than the way found here :
Dim pinger As New System.Net.NetworkInformation.Ping MessageBox.Show(pinger.Send("192.168.0.119").Status.ToString)
Started by Microgen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There's a WMI class which encapsulates ping, WIN32_PingStatus , which you can use from a client with XP/2003 or later. .
You can launch cmd.exe and execute the ping command by writing to StandardInput To retrieve results read from StandardOutput .
|
|
Hi... How many ways are there to learn implementing workflow of a software? What are them?
Started by odiseh on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This way I can concentrate.
Will be presented to the user in a particular state of the workflow .
|
|
Had a conversation with a coworker the other day about this.
There's the obvious which is to use a constructor, but what other ways are there?
Started by Mike Deck on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Language, the only way to create an object is by calling it's constructor, be it explicitly or implicitly.
|
Ask your Facebook Friends
|
What are the ways to eliminate the use of switch in code?
Started by Mariano on
, 24 posts
by 24 people.
Answer Snippets (Read the full thread at stackoverflow):
But on the other hand running business rules based on a switch statement... .
Using efficiently, a switch statement is pretty much the way to go.
I think the best way is to use a good Map.
Language is an important factor here also, I think.
|
|
What are some of the different ways a developer can create his own List objects?
Started by Johanna on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Like this:....
I use a dot or dash in front.
I usually get a piece of paper and write things down .
Then you need to implement methods for accessing list items .
AbstractList is a good starting point
Crete some object and add property of type array in it .
|
|
What are the best/most popular ways to do aspect-oriented programming (AOP) in C#/.Net?
Answer Snippets (Read the full thread at stackoverflow):
In general, I make an interface, implement it with a class, and then make a proxy which implements the interface, does whatever precondition steps I want... .
I've had some luck.
I've played around with rolling my own, for several different types of things .
|
|
How atomic ways can make our codes thread-safe?
Started by Johanna on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The typical synchronization problems occur....
Atomic operations are operations that cannot be interrupted at all .
Also, check out this other SO thread on Java memory model/concurrency .
You might want to read up a little on concurrency and locking in Java .
|
|
In this other question in the winning answer I read:
... good C++ programming typically doesn't use pointers in complicated ways.
What does it mean to not use pointers in complicated ways?
(I'm really hoping that this isn't a subjective question)
Started by leeand00 on
, 14 posts
by 14 people.
Answer Snippets (Read the full thread at stackoverflow):
So "complicated ways" of using pointers would be from having pointers to pointers and structure traversal using pointers to really complicated and potentially unsafe ways of using pointers make any sense, since it isn't possible to use....
|
|
I am trying to collect all possible ways to find controls in WPF. To find control by name, by type, etc.
Started by alex2k8 on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Public static class UIHelper { /// <summary> /// Finds a parent of a given .
In other ways as well.
|
|
What are Java's native ways of communicating with devices or ports such as LPT1, COM1, USB directly?
Started by eradicus on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
USB is extremely difficult; probably the easiest way is to write your own C+JNI wrapper.
Ports.
|