Click here to Skip to main content
15,908,274 members
Home / Discussions / C#
   

C#

 
AnswerRe: i need it as a prototype Pin
Alaric_5-May-09 5:53
professionalAlaric_5-May-09 5:53 
QuestionThe title of a control Pin
nike_arh4-May-09 8:45
nike_arh4-May-09 8:45 
AnswerRe: The title of a control Pin
Henry Minute4-May-09 8:48
Henry Minute4-May-09 8:48 
GeneralRe: The title of a control Pin
nike_arh4-May-09 9:49
nike_arh4-May-09 9:49 
GeneralRe: The title of a control Pin
Pete O'Hanlon4-May-09 9:52
mvePete O'Hanlon4-May-09 9:52 
GeneralRe: The title of a control Pin
Henry Minute4-May-09 10:03
Henry Minute4-May-09 10:03 
GeneralRe: The title of a control Pin
nike_arh4-May-09 10:16
nike_arh4-May-09 10:16 
GeneralRe: The title of a control Pin
nike_arh4-May-09 10:26
nike_arh4-May-09 10:26 
GeneralRe: The title of a control Pin
Pete O'Hanlon4-May-09 10:32
mvePete O'Hanlon4-May-09 10:32 
GeneralRe: The title of a control Pin
MidwestLimey4-May-09 10:43
professionalMidwestLimey4-May-09 10:43 
GeneralRe: The title of a control Pin
Pete O'Hanlon4-May-09 10:46
mvePete O'Hanlon4-May-09 10:46 
GeneralRe: The title of a control Pin
Dave Kreskowiak4-May-09 17:28
mveDave Kreskowiak4-May-09 17:28 
GeneralRe: The title of a control Pin
Dan Neely4-May-09 10:10
Dan Neely4-May-09 10:10 
AnswerRe: The title of a control Pin
Dave Kreskowiak4-May-09 17:30
mveDave Kreskowiak4-May-09 17:30 
QuestionI have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Greg Mort4-May-09 7:25
Greg Mort4-May-09 7:25 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Luc Pattyn4-May-09 7:36
sitebuilderLuc Pattyn4-May-09 7:36 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Luc Pattyn4-May-09 8:35
sitebuilderLuc Pattyn4-May-09 8:35 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
Greg Mort4-May-09 8:36
Greg Mort4-May-09 8:36 
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
JossGP4-May-09 8:37
JossGP4-May-09 8:37 
Hi Greg,

I think you could use this code ( for little endian) :

int result = 0;
int limit  = 4;
static float GetFloat(byte[] ToArray, int startindex)
{
    for (int i=0; i <limit; i++) 
    {
	byte thebyte = ToArray[startindex +limit-i-1];
	result = result << 8;
	result = result | thebyte;
    }
    return result;
}

I didn't manage binaries numbers wrote using big endian over little endian , but i think they are opposite in writing mode.

Try this, If it doesn't work change [startindex +limit-i-1] to [startindex +i]
hope this help you.
AnswerRe: I have a float in a binary file ( 0x00, 0x00, 0x06, 0x8B ) (1675), on a Windows Machine, How do I read it in from a binary file in c#? Pin
dybs4-May-09 15:40
dybs4-May-09 15:40 
Questionprint page with colored text in monochrome printer Pin
JossGP4-May-09 7:18
JossGP4-May-09 7:18 
AnswerRe: print page with colored text in monochrome printer Pin
Henry Minute4-May-09 8:59
Henry Minute4-May-09 8:59 
GeneralRe: print page with colored text in monochrome printer Pin
JossGP4-May-09 9:29
JossGP4-May-09 9:29 
GeneralRe: print page with colored text in monochrome printer Pin
Henry Minute4-May-09 10:00
Henry Minute4-May-09 10:00 
GeneralRe: print page with colored text in monochrome printer Pin
JossGP4-May-09 10:16
JossGP4-May-09 10:16 

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.