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

C#

 
QuestionCursor Size Pin
jojoba20118-Aug-11 20:29
jojoba20118-Aug-11 20:29 
AnswerRe: Cursor Size Pin
BobJanova9-Aug-11 0:37
BobJanova9-Aug-11 0:37 
QuestionBindingsource Question Pin
Davey_guan8-Aug-11 15:41
Davey_guan8-Aug-11 15:41 
AnswerRe: Bindingsource Question Pin
Qendro8-Aug-11 23:26
Qendro8-Aug-11 23:26 
GeneralRe: Bindingsource Question Pin
Davey_guan9-Aug-11 16:50
Davey_guan9-Aug-11 16:50 
Questioncant get this part of my program to produce the correct result Pin
stephen.darling8-Aug-11 11:45
stephen.darling8-Aug-11 11:45 
AnswerRe: cant get this part of my program to produce the correct result Pin
PIEBALDconsult8-Aug-11 15:37
mvePIEBALDconsult8-Aug-11 15:37 
GeneralRe: cant get this part of my program to produce the correct result Pin
stephen.darling9-Aug-11 4:22
stephen.darling9-Aug-11 4:22 
GeneralRe: cant get this part of my program to produce the correct result Pin
Matt Meyer9-Aug-11 4:57
Matt Meyer9-Aug-11 4:57 
GeneralRe: cant get this part of my program to produce the correct result Pin
stephen.darling9-Aug-11 5:54
stephen.darling9-Aug-11 5:54 
AnswerRe: cant get this part of my program to produce the correct result Pin
PIEBALDconsult8-Aug-11 16:35
mvePIEBALDconsult8-Aug-11 16:35 
AnswerRe: cant get this part of my program to produce the correct result Pin
BobJanova9-Aug-11 0:31
BobJanova9-Aug-11 0:31 
GeneralRe: cant get this part of my program to produce the correct result Pin
stephen.darling9-Aug-11 4:21
stephen.darling9-Aug-11 4:21 
GeneralRe: cant get this part of my program to produce the correct result Pin
BobJanova9-Aug-11 7:27
BobJanova9-Aug-11 7:27 
Pseudo code:
BigInteger bigInt= 0;
while(remaining.Length > 4){
 bigInt <<= 32;
 byte[] last4 = (last 4 bytes of remaining);
 bigInt += BitConverter.ConvertToUint32(last4);
 remaining = (all but last 4);
}


I'm sure that you would actually write the array part with indexers and not reallocating every time, but that's essentially what you are trying to do. If you want the string then just take bigInt.ToString at the end.

Again though I must ask, why not just store your key in hex format in the first place?
GeneralRe: cant get this part of my program to produce the correct result Pin
stephen.darling9-Aug-11 8:18
stephen.darling9-Aug-11 8:18 
GeneralRe: cant get this part of my program to produce the correct result Pin
BobJanova9-Aug-11 10:03
BobJanova9-Aug-11 10:03 
GeneralRe: cant get this part of my program to produce the correct result Pin
stephen.darling9-Aug-11 10:38
stephen.darling9-Aug-11 10:38 
Questionprofeesional sample oop project with c# Pin
mehran.asg8-Aug-11 10:56
mehran.asg8-Aug-11 10:56 
AnswerRe: profeesional sample oop project with c# Pin
Richard Andrew x648-Aug-11 11:43
professionalRichard Andrew x648-Aug-11 11:43 
AnswerRe: profeesional sample oop project with c# Pin
DaveyM698-Aug-11 12:29
professionalDaveyM698-Aug-11 12:29 
AnswerRe: profeesional sample oop project with c# Pin
Dr.Walt Fair, PE8-Aug-11 17:56
professionalDr.Walt Fair, PE8-Aug-11 17:56 
AnswerRe: profeesional sample oop project with c# Pin
PIEBALDconsult8-Aug-11 18:25
mvePIEBALDconsult8-Aug-11 18:25 
QuestionConvert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 8:24
md_refay8-Aug-11 8:24 
AnswerRe: Convert Dll c#2 to WOrk on C#4 Pin
jschell8-Aug-11 8:34
jschell8-Aug-11 8:34 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 8:44
md_refay8-Aug-11 8:44 

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.