Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. alexboly

    Use sockets to send an ARP request

    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...
  2. alexboly

    Find the MAC address of the network adapter

    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
  3. alexboly

    Find the MAC address of the network adapter

    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)...
  4. alexboly

    The Build -> Profile option does not activate

    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...
  5. alexboly

    How do I draw on the cliet size of a control?... example picture box.

    Process the Paint event of the control you wish to draw.
  6. alexboly

    How do you use the region class for hit testing?..

    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...
  7. alexboly

    OdbcDataReader

    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).
  8. alexboly

    C# +webform +USEMAP

    Nice! I wasn't sure if it would work, but that makes me even happier :) !
  9. alexboly

    C# +webform +USEMAP

    Try to add to the Attributes collection of the image the property for map. That is, .... imgZoom.Attributes.Add(&quot;USEMAP&quot;, &quot;#mapname&quot;); ... and define in the html the map with the name given: <MAP NAME=&quot;mapname&quot;> ...
  10. alexboly

    Questions on Creating/Including a namespace

    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...
  11. alexboly

    Looping through Page Controls

    It will surely work this way: RadioButtonList rb; foreach(Control ctrl in Page.Controls) { if(ctrl.GetType() != &quot;RadioButtonList&quot;) continue; rb = (RadioButtonList) ctrl; ... } if you don't mind going through all the controls all the time...
  12. alexboly

    Force file unlock

    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...
  13. alexboly

    Emulating an MS Access ComboBox features

    The new name of the combo box in .NET is drop down list.
  14. alexboly

    Emulating an MS Access ComboBox features

    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.
  15. alexboly

    Dynamic attributes in a class?

    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...
  16. alexboly

    WebRequest and threads cause problems

    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...
  17. alexboly

    Help. Webservice Creation - File Share? ???

    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'?
  18. alexboly

    Help. Webservice Creation - File Share? ???

    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?
  19. alexboly

    Use C# Class in VB project in VS?

    I'm glad you managed to do it. Regards, Alex
  20. alexboly

    is there anything is asp.net for documenting classes like javadoc

    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...

Part and Inventory Search

Back
Top