Did anybody use sockets to send an ARP request?
I presume that one can only use raw sockets to do that. I read the ARP description (rfc, protocol etc.), but I am very unexperienced with TCP/IP programming and with using sockets in C++. Can anybody give me an example, a code snippet or something...
Thanks, Richard.
Unfortunately this method does not work on Windows (which is my primary concern now), because the ioctl commands implement only a limited set of options relatively to the Berkeley sockets that does not include SIOCGIFHWADDR...
Any other ideas?
Thanks,
Alex
I have to find the MAC address of the network adapter. The problem is that the solution
1) Has to work at least on Windows 9x/ME/NT 4.0/2000/XP (maybe also on other Os's, like Linux);
2) Should be able of getting the MAC address for an adapter located on another computer in the LAN;
3)...
Hi,
I try to enable profiling for a project. I followed all the steps described in MSDN in order to do that. I built an .map file and everything, but I have one small problem: the menu Build -> Profile stays inactive no matter what I do.
I have Visual Studio Enterprise Edition, the programs...
Try to do the following:
Point point = new point(test_x, test_y);
Rectangle rect(x,y, width, height);
GraphicsPath path = new GraphicsPath();
Path.StartFigure();
Path.AddEllipse(rect);
Path.CloseFigure();
Region region = new Region(path);
if(region.IsVisible(point))
{
//the point is inside the...
The DataReader is a forward only, read only data set. I advise you to use a DataSet or a DataTable, depending on what you need (only one table or more).
Try to add to the Attributes collection of the image the property for map. That is,
....
imgZoom.Attributes.Add("USEMAP", "#mapname");
...
and define in the html the map with the name given:
<MAP NAME="mapname"> ...
The namespace is declared before every class of the library like this:
namespace mynamespace
{
class XXX
....
}
The file should have the .cs extension, but the project should compile to a library (dll).
If you have Visual Studio .NET, I advise you to use the wizard for creating a library...
It will surely work this way:
RadioButtonList rb;
foreach(Control ctrl in Page.Controls)
{
if(ctrl.GetType() != "RadioButtonList")
continue;
rb = (RadioButtonList) ctrl;
...
}
if you don't mind going through all the controls all the time...
Does anybody know if and how can I force a file unlock in a Windows 9x environment?
The detailed problem is the following: there is an application that can lock parts of a file that exists on another computer from the network(with Windows 9x). If the connection is lost, Windows 9x doesn't know...
Windows forms controls can be data bound. This means that the content of the control will correspond to the content of a data set. You can set the column to be displayed a.s.o. Check the MSDN library for details. If you don't understand ask again, I'll be glad to answer your questions.
My question is are the four classes related to one another? (like do they inherit from the same base class, or from one another etc.)
And if you know that your variable can only have one type, why don't you do it like this:
class MainOne
{
public string type;
public a info;
public...
I think that the web server uses thread pooling for requests. That means that it has already a number of threads created and it only passes them to the applications that make requests. The number of threads available is a parameter of the web server.
Now, in your case, because you are doing a...
Do you have a drive e: on your machine? Is this path:
'e:\inetpub\wwwroot\Dolphin\MathService' correct?
And if so, does it map on 'http://localhost/Dolphin/MathService'?
It seems that the path to your web service from the web server is not the same as the one where you deployed the web service.
Could you be more specific of the procedure you followed to create and deploy the web service?
There is such thing, but the documentation says it is only for C#...
Well, I will go on explaining it. You can place before beginning of classes, before events, properties, methods, delegates, interfaces and namespaces some special comments, prefixed with ///. You can use some tags in this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.