Click here to Skip to main content
15,884,912 members
Home / Discussions / C#
   

C#

 
GeneralRe: can u help me with a if question? [modified] Pin
andredani5-Sep-07 11:31
andredani5-Sep-07 11:31 
QuestionWorkaround global variables? Pin
MeLight5-Sep-07 8:36
MeLight5-Sep-07 8:36 
AnswerRe: Workaround global variables? Pin
TJoe5-Sep-07 8:52
TJoe5-Sep-07 8:52 
AnswerRe: Workaround global variables? Pin
Christian Graus5-Sep-07 8:53
protectorChristian Graus5-Sep-07 8:53 
AnswerRe: Workaround global variables? Pin
Larantz5-Sep-07 8:53
Larantz5-Sep-07 8:53 
AnswerThanx Pin
MeLight5-Sep-07 8:57
MeLight5-Sep-07 8:57 
AnswerRe: Workaround global variables? Pin
Dave Kreskowiak5-Sep-07 9:08
mveDave Kreskowiak5-Sep-07 9:08 
Questionsizeof Pin
dino20945-Sep-07 8:26
dino20945-Sep-07 8:26 
Hi,

I'm trying to write a method that is passed an array and do some bit operations. I'm trying to figure out a way to determine the number of bits an element of the arrray. I could hardcode the value but I'd like the flexibility just changing the header and nothing else.


int count(Uint16[] data){

//Try to do something like
int bitsInCell = sizeof(data[0])*8;

//Instead of
int bitsInCell = 16;

}

I'm trying to do it the first way so if I want to sent Uint32, I don't have to search the code for 16 and switch them to 32.

Thanks for your comments.
AnswerRe: sizeof Pin
TJoe5-Sep-07 8:50
TJoe5-Sep-07 8:50 
GeneralRe: sizeof Pin
Luc Pattyn5-Sep-07 10:02
sitebuilderLuc Pattyn5-Sep-07 10:02 
GeneralRe: sizeof Pin
TJoe5-Sep-07 10:19
TJoe5-Sep-07 10:19 
GeneralRe: sizeof Pin
dino20945-Sep-07 11:54
dino20945-Sep-07 11:54 
QuestionProblem passing data to an activeX Pin
Paolo Vernazza5-Sep-07 6:55
Paolo Vernazza5-Sep-07 6:55 
AnswerRe: Problem passing data to an activeX Pin
TJoe5-Sep-07 8:23
TJoe5-Sep-07 8:23 
GeneralRe: Problem passing data to an activeX Pin
Paolo Vernazza6-Sep-07 1:57
Paolo Vernazza6-Sep-07 1:57 
GeneralRe: Problem passing data to an activeX Pin
TJoe6-Sep-07 2:13
TJoe6-Sep-07 2:13 
GeneralRe: Problem passing data to an activeX Pin
Paolo Vernazza6-Sep-07 4:33
Paolo Vernazza6-Sep-07 4:33 
GeneralRe: Problem passing data to an activeX Pin
TJoe6-Sep-07 5:08
TJoe6-Sep-07 5:08 
QuestionHow to limit maximum size of other windows? Pin
Trickster-SWE5-Sep-07 6:33
Trickster-SWE5-Sep-07 6:33 
AnswerRe: How to limit maximum size of other windows? Pin
TJoe5-Sep-07 8:06
TJoe5-Sep-07 8:06 
GeneralRe: How to limit maximum size of other windows? Pin
Trickster-SWE5-Sep-07 22:33
Trickster-SWE5-Sep-07 22:33 
QuestionRegex replace question Pin
Vodstok5-Sep-07 6:13
Vodstok5-Sep-07 6:13 
AnswerRe: Regex replace question Pin
TJoe5-Sep-07 8:00
TJoe5-Sep-07 8:00 
Questionrow doesn't get deleted Pin
gericooper5-Sep-07 5:27
gericooper5-Sep-07 5:27 
QuestionVisual Studio Menu Layout Pin
DanB19835-Sep-07 5:13
DanB19835-Sep-07 5:13 

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.