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

C#

 
GeneralRe: Work Flow Diagram in C#2.0 Pin
swethasri11-Jan-09 19:48
swethasri11-Jan-09 19:48 
GeneralRe: Work Flow Diagram in C#2.0 Pin
Not Active11-Jan-09 20:01
mentorNot Active11-Jan-09 20:01 
GeneralRe: Work Flow Diagram in C#2.0 Pin
KANGAROO_11-Jan-09 20:36
KANGAROO_11-Jan-09 20:36 
GeneralRe: Work Flow Diagram in C#2.0 Pin
Abhijit Jana11-Jan-09 22:09
professionalAbhijit Jana11-Jan-09 22:09 
AnswerRe: Work Flow Diagram in C#2.0 Pin
Ashfield11-Jan-09 21:36
Ashfield11-Jan-09 21:36 
Questionconvert pointer and adress to C#? Pin
dec8211-Jan-09 16:32
dec8211-Jan-09 16:32 
AnswerRe: convert pointer and adress to C#? Pin
Not Active11-Jan-09 16:42
mentorNot Active11-Jan-09 16:42 
AnswerRe: convert pointer and adress to C#? Pin
Guffa11-Jan-09 17:15
Guffa11-Jan-09 17:15 
Well, first of all, what are we converting it from? Is this C code? I'll just assume that it is...

As Mark said, without the definitions, one can't make a definitive conversion.

The .NET equivalent of an unsigned char is the Byte data type. If Float1 and sBuffer are byte arrays and BufPtr is an integer, you copy the data like this:
for (int i = 3; i >= 0; i--) {
   Float1[i] = sbuffer[BufPtr++]
}

If Float1 is a single precision floating point number (Single), you use the BitConverter class to convert it to an array of bytes:
byte[] data = BitConverter.GetBytes(Float1);


Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: convert pointer and adress to C#? Pin
dec8211-Jan-09 17:51
dec8211-Jan-09 17:51 
AnswerRe: convert pointer and adress to C#? Pin
Guffa11-Jan-09 19:37
Guffa11-Jan-09 19:37 
QuestionNHibernate .NET 3.0 support? Pin
devvvy11-Jan-09 14:05
devvvy11-Jan-09 14:05 
AnswerRe: NHibernate .NET 3.0 support? Pin
Eddy Vluggen11-Jan-09 21:09
professionalEddy Vluggen11-Jan-09 21:09 
QuestionNetworkStream.Write Pin
Eli Nurman11-Jan-09 11:53
Eli Nurman11-Jan-09 11:53 
AnswerRe: NetworkStream.Write [modified] Pin
Luc Pattyn11-Jan-09 12:48
sitebuilderLuc Pattyn11-Jan-09 12:48 
GeneralRe: NetworkStream.Write Pin
Ben Fair12-Jan-09 7:43
Ben Fair12-Jan-09 7:43 
QuestionObject type not known at Design TIme Pin
CodingYoshi11-Jan-09 10:00
CodingYoshi11-Jan-09 10:00 
AnswerRe: Object type not known at Design TIme Pin
User 665811-Jan-09 10:46
User 665811-Jan-09 10:46 
AnswerRe: Object type not known at Design TIme Pin
Not Active11-Jan-09 12:31
mentorNot Active11-Jan-09 12:31 
GeneralRe: Object type not known at Design TIme Pin
CodingYoshi11-Jan-09 12:38
CodingYoshi11-Jan-09 12:38 
GeneralRe: Object type not known at Design TIme Pin
Guffa11-Jan-09 20:05
Guffa11-Jan-09 20:05 
AnswerRe: Object type not known at Design TIme Pin
Guffa11-Jan-09 20:02
Guffa11-Jan-09 20:02 
QuestionHow do I write to this class? [modified] Pin
e40s11-Jan-09 8:17
e40s11-Jan-09 8:17 
AnswerRe: How do I write to this class? Pin
Not Active11-Jan-09 8:28
mentorNot Active11-Jan-09 8:28 
GeneralRe: How do I write to this class? [modified] Pin
e40s11-Jan-09 9:17
e40s11-Jan-09 9:17 
GeneralRe: How do I write to this class? Pin
Not Active11-Jan-09 9:32
mentorNot Active11-Jan-09 9:32 

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.