Click here to Skip to main content
15,905,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: How does the VS resouce editor work? Pin
Cranky1-Feb-08 2:07
Cranky1-Feb-08 2:07 
GeneralRe: How does the VS resouce editor work? Pin
Kri51-Feb-08 3:45
Kri51-Feb-08 3:45 
Questionhow to calculate then network bandwidth utilization? Pin
Tahir Abbasi1-Feb-08 0:08
Tahir Abbasi1-Feb-08 0:08 
GeneralFloat in Scientific format Pin
yassinea31-Jan-08 23:50
yassinea31-Jan-08 23:50 
GeneralRe: Float in Scientific format Pin
stancrm1-Feb-08 0:30
stancrm1-Feb-08 0:30 
GeneralRe: Float in Scientific format Pin
Skippums1-Feb-08 1:07
Skippums1-Feb-08 1:07 
GeneralRe: Float in Scientific format Pin
yassinea1-Feb-08 1:19
yassinea1-Feb-08 1:19 
GeneralRe: Float in Scientific format Pin
Skippums1-Feb-08 1:27
Skippums1-Feb-08 1:27 
GeneralRe: Float in Scientific format Pin
J4amieC1-Feb-08 1:31
J4amieC1-Feb-08 1:31 
GeneralRe: Float in Scientific format Pin
yassinea1-Feb-08 1:36
yassinea1-Feb-08 1:36 
GeneralRe: Float in Scientific format Pin
J4amieC1-Feb-08 2:27
J4amieC1-Feb-08 2:27 
GeneralRe: Float in Scientific format Pin
yassinea1-Feb-08 23:30
yassinea1-Feb-08 23:30 
Generalscrollbar positioning Pin
razanabanu31-Jan-08 23:16
razanabanu31-Jan-08 23:16 
Generalpaging in datalist Pin
chithra.r31-Jan-08 23:00
chithra.r31-Jan-08 23:00 
QuestionDatabase Validation Pin
Smithakrishnan31-Jan-08 22:47
Smithakrishnan31-Jan-08 22:47 
GeneralRe: Database Validation Pin
Elayaraja Sambasivam1-Feb-08 3:10
Elayaraja Sambasivam1-Feb-08 3:10 
QuestionIs it possible to make the subitems in Listview editable? Pin
Seraph_summer31-Jan-08 21:54
Seraph_summer31-Jan-08 21:54 
AnswerRe: Is it possible to make the subitems in Listview editable? Pin
Skippums1-Feb-08 1:10
Skippums1-Feb-08 1:10 
GeneralForm closing issue Pin
Neo Andreson31-Jan-08 19:51
Neo Andreson31-Jan-08 19:51 
GeneralRe: Form closing issue Pin
stancrm31-Jan-08 20:06
stancrm31-Jan-08 20:06 
AnswerRe: Form closing issue Pin
Vikram A Punathambekar31-Jan-08 20:08
Vikram A Punathambekar31-Jan-08 20:08 
GeneralProblem in Getting MAC Address of a Remote machine... Pin
Balagurunathan S31-Jan-08 19:49
Balagurunathan S31-Jan-08 19:49 
Hi Friends..

I nee to get Mac address of a Remote machine for which i am using VC++ dll method("iphlpapi.dll") to do so..I am using the followin C# code to get the MAC Address..


public class clsMacAdd
{
[DllImport("iphlpapi.dll", ExactSpelling=true)]
public static extern int SendARP( int DestIP, int SrcIP, [Out] byte[] pMacAddr, ref int PhyAddrLen );


public static string GetMacaddress(string strHostName)
{
System.Net.IPHostEntry Tempaddr = null;
string[] Ipaddr = new string[3];

//strHostName = Request.UserHostName;

if ( strHostName == "127.0.0.1" )
{
strHostName = "system102";
}

Tempaddr = (System.Net.IPHostEntry)Dns.GetHostByName( strHostName );

System.Net.IPAddress[] TempAd = Tempaddr.AddressList;

foreach(IPAddress TempA in TempAd)
{
Ipaddr[1] = TempA.ToString();

byte[] ab = new byte[6];
int len = ab.Length;

// This Function Used to Get The Physical Address
//int r = SendARP(int(TempA.Address), 0, ab, ref len );
int r = SendARP( (int) TempA.Address, 0, ab, ref len );
string mac = BitConverter.ToString( ab, 0, 6 );
return mac;
}
return null;
}
}


}


I am getting the MAC address when i run in enterprise network(local),but when i host it a web server(live) i couldn't get the MAC Address..Wat could be the problem..? Someone help in this regard as early as possible..


Regards,

Balaguru

GeneralWPF: Object position does not change. Pin
AghaKhan31-Jan-08 11:58
AghaKhan31-Jan-08 11:58 
GeneralRe: WPF: Object position does not change. Pin
CKnig31-Jan-08 18:52
CKnig31-Jan-08 18:52 
GeneralRe: WPF: Object position does not change. Pin
AghaKhan1-Feb-08 7:24
AghaKhan1-Feb-08 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.