Click here to Skip to main content
15,885,116 members
Home / Discussions / C#
   

C#

 
QuestionColor dropdown for new Toolstrip [modified] Pin
Jim Crafton18-Dec-09 4:08
Jim Crafton18-Dec-09 4:08 
QuestionShift operator [modified] Pin
thungphan18-Dec-09 3:23
thungphan18-Dec-09 3:23 
AnswerRe: Shift operator Pin
thungphan18-Dec-09 4:30
thungphan18-Dec-09 4:30 
GeneralRe: Shift operator Pin
Rob Philpott18-Dec-09 4:42
Rob Philpott18-Dec-09 4:42 
GeneralRe: Shift operator Pin
thungphan18-Dec-09 4:54
thungphan18-Dec-09 4:54 
AnswerRe: Shift operator Pin
harold aptroot18-Dec-09 4:55
harold aptroot18-Dec-09 4:55 
AnswerRe: Shift operator Pin
Luc Pattyn18-Dec-09 5:09
sitebuilderLuc Pattyn18-Dec-09 5:09 
AnswerRe: Shift operator Pin
thungphan18-Dec-09 17:05
thungphan18-Dec-09 17:05 
byte b0=GetByte(); // after these four commands
byte b1=GetByte(); // b0, b1, b2, b3 have values
byte b2=GetByte(); // 
byte b3=GetByte(); //
int vr= + b1;
if ((b0<<8+b1)==0x4F42)
{
    int length;
    if (littleEndian)
       length=(b3<<24) + (b2<<16) + (b1<<8) + b0;
    else
       length=(b0<<24) + (b1<<16) + (b2<<8) + b3;
} 

Now I have a value of length variable and to convert inverse direction. I'd like to gain b0, b1, b2, b3.
And those gained b0, b1 must ensure when apply (b0<<8) + b1 will be equal to 0x4F42 again.
That's what I want to. Before i try to simplify my problem but unfortunately i made it difficult to understand for you.
Please help me! Thank you so much!
GeneralRe: Shift operator Pin
harold aptroot19-Dec-09 3:29
harold aptroot19-Dec-09 3:29 
QuestionTwo ListViews Pin
Tagamoga18-Dec-09 2:38
Tagamoga18-Dec-09 2:38 
AnswerRe: Two ListViews Pin
benjymous18-Dec-09 3:14
benjymous18-Dec-09 3:14 
GeneralRe: Two ListViews Pin
Tagamoga18-Dec-09 3:29
Tagamoga18-Dec-09 3:29 
Questionzedgraph Pin
jashimu18-Dec-09 2:16
jashimu18-Dec-09 2:16 
AnswerMessage Closed Pin
18-Dec-09 2:50
stancrm18-Dec-09 2:50 
GeneralRe: zedgraph Pin
jashimu18-Dec-09 4:09
jashimu18-Dec-09 4:09 
QuestionHide database file from user Pin
NarendraSinghJTV18-Dec-09 1:53
NarendraSinghJTV18-Dec-09 1:53 
AnswerRe: Hide database file from user Pin
Ashfield18-Dec-09 2:02
Ashfield18-Dec-09 2:02 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV18-Dec-09 2:33
NarendraSinghJTV18-Dec-09 2:33 
GeneralRe: Hide database file from user Pin
Saksida Bojan18-Dec-09 3:57
Saksida Bojan18-Dec-09 3:57 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV18-Dec-09 17:51
NarendraSinghJTV18-Dec-09 17:51 
GeneralRe: Hide database file from user Pin
Saksida Bojan18-Dec-09 20:42
Saksida Bojan18-Dec-09 20:42 
GeneralRe: Hide database file from user Pin
Ashfield18-Dec-09 8:53
Ashfield18-Dec-09 8:53 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV18-Dec-09 17:50
NarendraSinghJTV18-Dec-09 17:50 
GeneralRe: Hide database file from user Pin
Ashfield18-Dec-09 20:25
Ashfield18-Dec-09 20:25 
GeneralRe: Hide database file from user Pin
NarendraSinghJTV19-Dec-09 0:23
NarendraSinghJTV19-Dec-09 0:23 

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.