Click here to Skip to main content
15,915,783 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting Values from List Pin
PIEBALDconsult20-Jul-09 14:21
mvePIEBALDconsult20-Jul-09 14:21 
General[Message Deleted] Pin
ImNAM20-Jul-09 14:23
ImNAM20-Jul-09 14:23 
GeneralRe: Getting Values from List Pin
Christian Graus20-Jul-09 14:24
protectorChristian Graus20-Jul-09 14:24 
AnswerRe: Getting Values from List Pin
Christian Graus20-Jul-09 14:25
protectorChristian Graus20-Jul-09 14:25 
GeneralRe: Getting Values from List Pin
ImNAM20-Jul-09 14:30
ImNAM20-Jul-09 14:30 
GeneralRe: Getting Values from List Pin
Christian Graus20-Jul-09 14:36
protectorChristian Graus20-Jul-09 14:36 
GeneralRe: Getting Values from List Pin
PIEBALDconsult20-Jul-09 16:30
mvePIEBALDconsult20-Jul-09 16:30 
Questionwhat is the equivalent to this c++ code in C#? Pin
Abdulaziz M Zaben20-Jul-09 12:22
Abdulaziz M Zaben20-Jul-09 12:22 
AnswerRe: what is the equivalent to this c++ code in C#? Pin
Luc Pattyn20-Jul-09 12:59
sitebuilderLuc Pattyn20-Jul-09 12:59 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
Abdulaziz M Zaben20-Jul-09 13:16
Abdulaziz M Zaben20-Jul-09 13:16 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
Luc Pattyn20-Jul-09 13:47
sitebuilderLuc Pattyn20-Jul-09 13:47 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
Adrian Schröder20-Jul-09 20:47
Adrian Schröder20-Jul-09 20:47 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
Luc Pattyn21-Jul-09 2:12
sitebuilderLuc Pattyn21-Jul-09 2:12 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
PIEBALDconsult20-Jul-09 14:23
mvePIEBALDconsult20-Jul-09 14:23 
GeneralRe: what is the equivalent to this c++ code in C#? Pin
Luc Pattyn20-Jul-09 14:51
sitebuilderLuc Pattyn20-Jul-09 14:51 
AnswerRe: what is the equivalent to this c++ code in C#? Pin
PIEBALDconsult20-Jul-09 16:44
mvePIEBALDconsult20-Jul-09 16:44 
AnswerRe: what is the equivalent to this c++ code in C#? [modified] Pin
Abdulaziz M Zaben20-Jul-09 22:08
Abdulaziz M Zaben20-Jul-09 22:08 
An idea came up to my mind


This is not a working code, it's just for demonstration
<br />
<br />
class image<br />
{<br />
byte x; // 4 bits<br />
byte y; // 4 bits<br />
byte color; // 8 bits<br />
byte grayscale; // 1 bit<br />
byte spare; // 7 bits<br />
<br />
public byte[] getImageByteArray()<br />
{<br />
byte byteArray[3];<br />
byteArray[0] = x<<4 +y;<br />
byteArray[1] = color;<br />
byteArray[2] = grayscale<<7 + spare;<br />
}<br />
}<br />
<br />


I don't know if this will be fine since I am communicating with a real time application, and I have large structs,I mean will this bit manipulation slow the process of sending data over 40ms intervals.

Edit:
Another problem raises when I have fields larger than 8 bits

modified on Tuesday, July 21, 2009 5:02 AM

GeneralRe: what is the equivalent to this c++ code in C#? Pin
Gideon Engelberth21-Jul-09 3:40
Gideon Engelberth21-Jul-09 3:40 
AnswerRe: what is the equivalent to this c++ code in C#? Pin
iscript21-Jul-09 15:56
iscript21-Jul-09 15:56 
QuestionIs it possible to disable parts of a pictureBox? Pin
NewJavaBean20-Jul-09 11:23
NewJavaBean20-Jul-09 11:23 
AnswerRe: Is it possible to disable parts of a pictureBox? Pin
Christian Graus20-Jul-09 14:30
protectorChristian Graus20-Jul-09 14:30 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean20-Jul-09 15:30
NewJavaBean20-Jul-09 15:30 
AnswerRe: Is it possible to disable parts of a pictureBox? Pin
PIEBALDconsult20-Jul-09 17:18
mvePIEBALDconsult20-Jul-09 17:18 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean21-Jul-09 2:16
NewJavaBean21-Jul-09 2:16 
GeneralRe: Is it possible to disable parts of a pictureBox? Pin
NewJavaBean21-Jul-09 6:03
NewJavaBean21-Jul-09 6:03 

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.