Click here to Skip to main content
15,914,444 members
Home / Discussions / C#
   

C#

 
QuestionCreate Instance of an Application Pin
EscKey200413-Sep-06 6:18
EscKey200413-Sep-06 6:18 
AnswerRe: Create Instance of an Application Pin
Ed.Poore13-Sep-06 6:49
Ed.Poore13-Sep-06 6:49 
AnswerRe: Create Instance of an Application Pin
Judah Gabriel Himango13-Sep-06 6:49
sponsorJudah Gabriel Himango13-Sep-06 6:49 
GeneralRe: Create Instance of an Application Pin
EscKey200413-Sep-06 7:34
EscKey200413-Sep-06 7:34 
GeneralRe: Create Instance of an Application Pin
Judah Gabriel Himango13-Sep-06 8:07
sponsorJudah Gabriel Himango13-Sep-06 8:07 
GeneralRe: Create Instance of an Application Pin
EscKey200413-Sep-06 8:14
EscKey200413-Sep-06 8:14 
Questionbit operations question for binary>decimal Pin
mmatteson13-Sep-06 6:14
mmatteson13-Sep-06 6:14 
AnswerRe: bit operations question for binary>decimal Pin
Guffa13-Sep-06 9:20
Guffa13-Sep-06 9:20 
I have added comments to part of the code:

// calculate what bit to get in the byte<br />
bit_offset = (offset+i) % 8;<br />
<br />
// calculate what byte to get<br />
byte_index = (offset+i-bit_offset) / 8;<br />
<br />
// get the byte<br />
b = datagram[byte_index];<br />
<br />
// shift the byte so the desired bit is at position zero<br />
bit = (int)(b >> (7 - bit_offset));<br />
<br />
// clear all bits except the one at position zero<br />
bit = bit & 0x0001;<br />
<br />
// calculate the value of the bit and add to the total<br />
total += (uint)Math.Pow(2,length-i-1);<br />



---
b { font-weight: normal; }

GeneralRe: bit operations question for binary&gt;decimal Pin
mmatteson29-Sep-06 10:51
mmatteson29-Sep-06 10:51 
QuestionVB SCRIPT issue : called from C# Pin
Nadia Monalisa13-Sep-06 5:56
Nadia Monalisa13-Sep-06 5:56 
AnswerRe: VB SCRIPT issue : called from C# Pin
Nader Elshehabi13-Sep-06 9:07
Nader Elshehabi13-Sep-06 9:07 
GeneralRe: VB SCRIPT issue : called from C# Pin
Nadia Monalisa13-Sep-06 9:23
Nadia Monalisa13-Sep-06 9:23 
GeneralRe: VB SCRIPT issue : called from C# Pin
Nader Elshehabi13-Sep-06 9:48
Nader Elshehabi13-Sep-06 9:48 
QuestionStoring connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 5:46
Nadia Monalisa13-Sep-06 5:46 
AnswerRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nader Elshehabi13-Sep-06 6:04
Nader Elshehabi13-Sep-06 6:04 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 6:22
Nadia Monalisa13-Sep-06 6:22 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nader Elshehabi13-Sep-06 7:32
Nader Elshehabi13-Sep-06 7:32 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 7:37
Nadia Monalisa13-Sep-06 7:37 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 7:44
Nadia Monalisa13-Sep-06 7:44 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nader Elshehabi13-Sep-06 8:40
Nader Elshehabi13-Sep-06 8:40 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 9:37
Nadia Monalisa13-Sep-06 9:37 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nader Elshehabi13-Sep-06 10:12
Nader Elshehabi13-Sep-06 10:12 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nadia Monalisa13-Sep-06 10:24
Nadia Monalisa13-Sep-06 10:24 
GeneralRe: Storing connection string in CODE instead of App.Config ! , POSSIBLE ? Pin
Nader Elshehabi13-Sep-06 10:37
Nader Elshehabi13-Sep-06 10:37 
QuestionControls Pin
papa8013-Sep-06 5:39
papa8013-Sep-06 5:39 

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.