Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
DaveyM698-Aug-11 12:40
professionalDaveyM698-Aug-11 12:40 
AnswerRe: Convert Dll c#2 to WOrk on C#4 Pin
PIEBALDconsult8-Aug-11 15:37
mvePIEBALDconsult8-Aug-11 15:37 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
md_refay8-Aug-11 18:47
md_refay8-Aug-11 18:47 
GeneralRe: Convert Dll c#2 to WOrk on C#4 Pin
Mycroft Holmes8-Aug-11 23:35
professionalMycroft Holmes8-Aug-11 23:35 
QuestionExcel Interop - Excel Not Closing Pin
Kevin Marois8-Aug-11 7:20
professionalKevin Marois8-Aug-11 7:20 
AnswerRe: Excel Interop - Excel Not Closing Pin
PIEBALDconsult8-Aug-11 15:39
mvePIEBALDconsult8-Aug-11 15:39 

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.