Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where can i find MSR.LST.Net.Rtp.dll? Pin
Dave Kreskowiak15-May-14 9:32
mveDave Kreskowiak15-May-14 9:32 
Questioncar plate recognition Pin
jianloong15-Feb-06 1:14
jianloong15-Feb-06 1:14 
AnswerRe: car plate recognition Pin
James Gupta15-Feb-06 1:55
professionalJames Gupta15-Feb-06 1:55 
AnswerRe: car plate recognition Pin
Divyang Mithaiwala15-Feb-06 2:08
Divyang Mithaiwala15-Feb-06 2:08 
GeneralRe: car plate recognition Pin
jianloong15-Feb-06 2:51
jianloong15-Feb-06 2:51 
GeneralRe: car plate recognition Pin
LighthouseJ15-Feb-06 7:51
LighthouseJ15-Feb-06 7:51 
GeneralRe: car plate recognition Pin
James Gupta15-Feb-06 12:23
professionalJames Gupta15-Feb-06 12:23 
GeneralRe: car plate recognition Pin
LighthouseJ15-Feb-06 15:45
LighthouseJ15-Feb-06 15:45 
GeneralRe: car plate recognition Pin
jianloong15-Feb-06 23:10
jianloong15-Feb-06 23:10 
GeneralRe: car plate recognition Pin
LighthouseJ16-Feb-06 3:25
LighthouseJ16-Feb-06 3:25 
AnswerRe: car plate recognition Pin
hanryongwon9-Jan-09 1:30
hanryongwon9-Jan-09 1:30 
QuestionHow to logoff USB-Stick from WindowsXP by C#? Pin
havey00715-Feb-06 0:48
havey00715-Feb-06 0:48 
AnswerRe: How to logoff USB-Stick from WindowsXP by C#? Pin
Douglas Troy15-Feb-06 5:38
Douglas Troy15-Feb-06 5:38 
QuestionARX Tutorials needed Pin
rukmaj14-Feb-06 21:11
rukmaj14-Feb-06 21:11 
AnswerRe: ARX Tutorials needed Pin
zhok3-Jun-06 11:41
zhok3-Jun-06 11:41 
QuestionIP List Pin
krieg3814-Feb-06 20:53
krieg3814-Feb-06 20:53 
QuestionRe: IP List Pin
leppie14-Feb-06 21:07
leppie14-Feb-06 21:07 
AnswerRe: IP List Pin
krieg3814-Feb-06 21:53
krieg3814-Feb-06 21:53 
GeneralRe: IP List Pin
Dario Solera14-Feb-06 22:38
Dario Solera14-Feb-06 22:38 
Since an IP address is a 32 bit unsigned integer, you can convert the IPs into "flat" numbers, then generate all the addresses you want, then convert them into a "classic" IP address.

For example:
string[] startAddr = "127.0.0.1".Split('.');
string[] endAddr = "127.2.0.1".Split('.');

uint start = uint.Parse(startAddr[0]) +
  uint.Parse(startAddr[1]) * 256 + 
  uint.Parse(startAddr[2]) * 256 * 256 +
  uint.Parse(startAddr[3]) * 256 * 256 * 256;
uint end = ... // The same

uint[] addr = new uint[end - start];
for(int i = 0; i < addr.Length; i++) {
  addr[i] = start + i;
}

string[] result = new string[addr.Lenght];
string tmp = "";
for(int i = 0; i < result.Lenght; i++) {
   result[i] = "";
   result[i] += ((uint)(addr[i] % (256 * 256 * 256 * 256))).ToString() + ".";
   result[i] += ((uint)(addr[i] % (256 * 256 * 256))).ToString() + ".";
   result[i] += ((uint)(addr[i] % (256 * 256))).ToString() + ".";
   result[i] += ((uint)(addr[i] % (256))).ToString();
}


I don't know if this works (I didn't try it), but this is my idea. Wink | ;)

EDIT: IT DOESN'T WORK AT ALL!

___________________________________
Tozzi is right: Gaia is getting rid of us.
My Blog [ITA]


-- modified at 4:59 Wednesday 15th February, 2006
AnswerRe: IP List Pin
J4amieC15-Feb-06 0:49
J4amieC15-Feb-06 0:49 
GeneralRe: IP List Pin
krieg3815-Feb-06 17:50
krieg3815-Feb-06 17:50 
QuestionLoad an assembly dynamically in a new App Domain Pin
KaurGurpreet14-Feb-06 20:36
KaurGurpreet14-Feb-06 20:36 
AnswerRe: Load an assembly dynamically in a new App Domain Pin
CWIZO14-Feb-06 20:52
CWIZO14-Feb-06 20:52 
GeneralRe: Load an assembly dynamically in a new App Domain Pin
KaurGurpreet14-Feb-06 21:10
KaurGurpreet14-Feb-06 21:10 
GeneralRe: Load an assembly dynamically in a new App Domain Pin
CWIZO14-Feb-06 21:18
CWIZO14-Feb-06 21:18 

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.