Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
AnswerRe: Searching Source Code Pin
Henry Minute20-May-09 0:57
Henry Minute20-May-09 0:57 
AnswerRe: Searching Source Code Pin
Michael Bookatz20-May-09 2:15
Michael Bookatz20-May-09 2:15 
AnswerRe: Searching Source Code Pin
EliottA20-May-09 2:35
EliottA20-May-09 2:35 
AnswerRe: Searching Source Code Pin
benjymous20-May-09 2:37
benjymous20-May-09 2:37 
QuestionAdding custom HTTP header to every webservice calls Pin
King Julien19-May-09 23:38
King Julien19-May-09 23:38 
AnswerRe: Adding custom HTTP header to every webservice calls Pin
MumbleB20-May-09 0:14
MumbleB20-May-09 0:14 
GeneralRe: Adding custom HTTP header to every webservice calls Pin
King Julien20-May-09 0:21
King Julien20-May-09 0:21 
QuestionData Conversion? Pin
dec8219-May-09 23:06
dec8219-May-09 23:06 
I have these code:
protected bool EEWrite(UInt16 Address, byte Size, object[] ByteData)
{
bool Status = true;
object[] Data = new object[4 + Size];
Data[0] = SerialNumber;
Data[1] = (byte)0x80;
Data[2] = (UInt16)Address;
Data[3] = (byte)Size;
for(int i = 4; i<=4+Size;i++)
{
Data[i] = (byte)ByteData[i - 4];
}
Status = Device.Write( Data);
return Status;
}

Then i 'd like to write a float number write_number as below:
Status = EEWrite(0x9021, 1, ByteData);

How would i convert a float write_number into ByteData?

Thanks !
AnswerRe: Data Conversion? Pin
musefan19-May-09 23:39
musefan19-May-09 23:39 
GeneralRe: Data Conversion? Pin
dec8220-May-09 15:28
dec8220-May-09 15:28 
GeneralRe: Data Conversion? Pin
musefan20-May-09 21:51
musefan20-May-09 21:51 
QuestionStack Overflow Pin
Denis J. González19-May-09 21:24
Denis J. González19-May-09 21:24 
AnswerRe: Stack Overflow Pin
Nagy Vilmos19-May-09 21:39
professionalNagy Vilmos19-May-09 21:39 
GeneralRe: Stack Overflow Pin
OriginalGriff19-May-09 21:48
mveOriginalGriff19-May-09 21:48 
GeneralRe: Stack Overflow Pin
Nagy Vilmos19-May-09 22:05
professionalNagy Vilmos19-May-09 22:05 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:53
Denis J. González20-May-09 3:53 
GeneralRe: Stack Overflow Pin
Nagy Vilmos20-May-09 4:17
professionalNagy Vilmos20-May-09 4:17 
AnswerRe: Stack Overflow Pin
monstale19-May-09 21:46
monstale19-May-09 21:46 
GeneralRe: Stack Overflow Pin
Nagy Vilmos19-May-09 22:05
professionalNagy Vilmos19-May-09 22:05 
AnswerRe: Stack Overflow Pin
Guffa19-May-09 22:06
Guffa19-May-09 22:06 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:50
Denis J. González20-May-09 3:50 
AnswerRe: Stack Overflow Pin
Guffa22-May-09 13:02
Guffa22-May-09 13:02 
AnswerRe: Stack Overflow Pin
0x3c019-May-09 22:18
0x3c019-May-09 22:18 
GeneralRe: Stack Overflow Pin
Denis J. González20-May-09 3:48
Denis J. González20-May-09 3:48 
Questiondisabiling of menustrip in a child form i Pin
reddineni19-May-09 20:48
reddineni19-May-09 20:48 

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.