Click here to Skip to main content
16,005,037 members
Home / Discussions / C#
   

C#

 
QuestionHow to Add a Font in Setup Project Pin
Bajrang Singh10-Feb-08 20:04
Bajrang Singh10-Feb-08 20:04 
AnswerRe: How to Add a Font in Setup Project Pin
Rupesh Kumar Swami10-Feb-08 20:18
Rupesh Kumar Swami10-Feb-08 20:18 
AnswerRe: How to Add a Font in Setup Project Pin
Giorgi Dalakishvili10-Feb-08 20:25
mentorGiorgi Dalakishvili10-Feb-08 20:25 
GeneralRe: How to Add a Font in Setup Project Pin
Rupesh Kumar Swami10-Feb-08 20:39
Rupesh Kumar Swami10-Feb-08 20:39 
GeneralAn unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in c# Pin
ramyanaidu10-Feb-08 18:36
ramyanaidu10-Feb-08 18:36 
GeneralRe: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in c# Pin
Martin#10-Feb-08 20:24
Martin#10-Feb-08 20:24 
GeneralPrinting 128-bit integer in decimal Pin
Skippums10-Feb-08 15:59
Skippums10-Feb-08 15:59 
GeneralRe: Printing 128-bit integer in decimal Pin
Luc Pattyn11-Feb-08 1:41
sitebuilderLuc Pattyn11-Feb-08 1:41 
Hi Jeff,

I did not study your code in any detail, but have some suggestions.

may I suggest you do all testing and debugging in hex until you are satisfied by
the results. Hex input/ouput will easily reveal where things go wrong when they do.
Also start with small divisors, and keep them a power of 2 or 16 for starters.

With simple hex numbers it should be rather easy to figure out when ToString
fails whether it is due to the Divide method or the ToString logic itself.

I once did a biginteger class (with thousands of uints in one number), but did
the ToString() completely different: rather than executing the expensive
full-divide, I did a much cheaper divide-by-10 for each digit, from right to left.

Also biginteger packages are ideal candidates for NUnit testing, first to check
internal functions such as Log2, then the public methods.

PS: I am unsure about operator precendence in lines such as
return new TestUInt(a.m_HBits << b | a.m_LBits >> 64 - b, a.m_LBits << b);
so I would suggest you add some parentheses to make sure it works correctly.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: Printing 128-bit integer in decimal Pin
Skippums11-Feb-08 5:20
Skippums11-Feb-08 5:20 
GeneralRe: Printing 128-bit integer in decimal Pin
Luc Pattyn11-Feb-08 6:06
sitebuilderLuc Pattyn11-Feb-08 6:06 
AnswerRe: Printing 128-bit integer in decimal Pin
Skippums11-Feb-08 5:50
Skippums11-Feb-08 5:50 
QuestionBackground image refreshing on Form resizing? Pin
Jacob Dixon10-Feb-08 13:19
Jacob Dixon10-Feb-08 13:19 
AnswerRe: Background image refreshing on Form resizing? Pin
Jacob Dixon10-Feb-08 13:27
Jacob Dixon10-Feb-08 13:27 
QuestionNew gradient background for Button...? Pin
Edmundisme10-Feb-08 11:23
Edmundisme10-Feb-08 11:23 
AnswerRe: New gradient background for Button...? Pin
Joachim Kerschbaumer10-Feb-08 21:48
Joachim Kerschbaumer10-Feb-08 21:48 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:37
Edmundisme11-Feb-08 7:37 
AnswerRe: New gradient background for Button...? Pin
Abhijit Jana10-Feb-08 22:03
professionalAbhijit Jana10-Feb-08 22:03 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:38
Edmundisme11-Feb-08 7:38 
AnswerRe: New gradient background for Button...? Pin
Ravenet11-Feb-08 3:13
Ravenet11-Feb-08 3:13 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:38
Edmundisme11-Feb-08 7:38 
GeneralAssigning a control back to the main form in the DragOver method... [modified] Pin
new_phoenix10-Feb-08 9:13
new_phoenix10-Feb-08 9:13 
GeneralApplication of Digital Dictionary Pin
Abdul8510-Feb-08 7:23
Abdul8510-Feb-08 7:23 
GeneralDouble post - please ignore Pin
pmarfleet10-Feb-08 7:51
pmarfleet10-Feb-08 7:51 
GeneralBest approach Pin
pokabot10-Feb-08 6:41
pokabot10-Feb-08 6:41 
GeneralRe: Best approach Pin
Pete O'Hanlon10-Feb-08 10:10
mvePete O'Hanlon10-Feb-08 10:10 

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.