Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
QuestionCalling a 32-bit .NET dll from a 64-bit .NET application [modified] Pin
Phil J Pearson1-Aug-08 5:29
Phil J Pearson1-Aug-08 5:29 
AnswerRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin1-Aug-08 8:25
vikas amin1-Aug-08 8:25 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
Phil J Pearson3-Aug-08 23:39
Phil J Pearson3-Aug-08 23:39 
GeneralRe: Calling a 32-bit .NET dll from a 64-bit .NET application Pin
vikas amin4-Aug-08 4:29
vikas amin4-Aug-08 4:29 
Questionsetting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:02
Barry T1-Aug-08 5:02 
AnswerRe: setting the selected item in a combobox from the constructor problem Pin
Phil J Pearson1-Aug-08 5:19
Phil J Pearson1-Aug-08 5:19 
GeneralRe: setting the selected item in a combobox from the constructor problem Pin
Barry T1-Aug-08 5:34
Barry T1-Aug-08 5:34 
QuestionLooking for an alternative to bit shifting Pin
Jim Warburton1-Aug-08 4:50
Jim Warburton1-Aug-08 4:50 
I am using 3rd party hardware and as a result, their software (off to a bad start) and their response to this question is deal with it. I can't change the hardware.
The problem is the hardware produces a 3 byte value which is stored as an int, ie in 4 bytes. The 3 bytes are stored in the three most significant bytes of the int and the least significant byte of the int is left as 0. If the 3 bytes were 12 34 56 they would be stored as 12 34 56 00. Thus if one tries to pull the bytes out as ints the appearance is the value has been multiplied.
My solution at the moment is to bit shift each element in the array by 8. The arrays can be large. Any ideas about a faster approach?

Thanks Jim

this thing looks like it was written by an epileptic ferret
Dave Kreskowiak

AnswerRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 5:50
Robert.C.Cartaino1-Aug-08 5:50 
GeneralMessage Closed Pin
1-Aug-08 7:39
Dan Neely1-Aug-08 7:39 
GeneralRe: Looking for an alternative to bit shifting Pin
Robert.C.Cartaino1-Aug-08 9:12
Robert.C.Cartaino1-Aug-08 9:12 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 10:11
mvePIEBALDconsult2-Aug-08 10:11 
AnswerRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 6:34
mvePIEBALDconsult1-Aug-08 6:34 
AnswerRe: Looking for an alternative to bit shifting Pin
Guffa1-Aug-08 11:01
Guffa1-Aug-08 11:01 
GeneralRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult1-Aug-08 15:17
mvePIEBALDconsult1-Aug-08 15:17 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 1:48
Guffa2-Aug-08 1:48 
GeneralRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 5:41
mvePIEBALDconsult2-Aug-08 5:41 
GeneralRe: Looking for an alternative to bit shifting Pin
Guffa2-Aug-08 10:13
Guffa2-Aug-08 10:13 
AnswerRe: Looking for an alternative to bit shifting Pin
PIEBALDconsult2-Aug-08 8:18
mvePIEBALDconsult2-Aug-08 8:18 
AnswerRe: Looking for an alternative to bit shifting [modified] Pin
PIEBALDconsult2-Aug-08 8:52
mvePIEBALDconsult2-Aug-08 8:52 
Questionlocalizable form gridview issue Pin
muharrem1-Aug-08 4:37
muharrem1-Aug-08 4:37 
AnswerRe: localizable form gridview issue Pin
nelsonpaixao1-Aug-08 13:17
nelsonpaixao1-Aug-08 13:17 
GeneralRe: localizable form gridview issue Pin
muharrem2-Aug-08 1:51
muharrem2-Aug-08 1:51 
QuestionService to show form Pin
BenGriffiths1-Aug-08 4:17
BenGriffiths1-Aug-08 4:17 
AnswerRe: Service to show form Pin
paas1-Aug-08 4:43
paas1-Aug-08 4:43 

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.