Click here to Skip to main content
16,018,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: How to do? Pin
Code-o-mat30-Mar-11 5:10
Code-o-mat30-Mar-11 5:10 
GeneralRe: How to do? Pin
Stefan_Lang30-Mar-11 5:45
Stefan_Lang30-Mar-11 5:45 
GeneralRe: How to do? Pin
Code-o-mat30-Mar-11 5:51
Code-o-mat30-Mar-11 5:51 
GeneralRe: How to do? Pin
Stefan_Lang30-Mar-11 6:05
Stefan_Lang30-Mar-11 6:05 
GeneralRe: How to do? Pin
Code-o-mat30-Mar-11 6:25
Code-o-mat30-Mar-11 6:25 
GeneralRe: How to do? Pin
john563230-Mar-11 20:41
john563230-Mar-11 20:41 
GeneralRe: How to do? Pin
Code-o-mat30-Mar-11 23:58
Code-o-mat30-Mar-11 23:58 
AnswerRe: How to do? Pin
Stefan_Lang30-Mar-11 4:53
Stefan_Lang30-Mar-11 4:53 
If you really want to retrieve a full string from some code, then what you need is a compression algorithm, not a CRC code.

If you just want to be able to correct a bad bit or something like that, you still need something else than CRC. CRC has a 'hamming distance' of 10, meaning you can compare the value to the one you expect and decide if your input is correct, but you cannot determine what is wrong, nor how to correct it, and you can not unambiguously retrieve the original input. You can construct a hash code with a greater hamming distance that would enable you to fix up to a given number of bad bits, but the algorithms to do that are quite complex. Search for 'hamming distance' and 'coding theory' if that is what you're after.

P.S.: I just realized that the statement 'if you just want ...' above was in fact quite wrong, since to achieve a code with a hamming distance of 1 already implies you have a full compression algorithm and can retrieve the string from the code. Being able to correct a flawed encoded string requires a compression with extra information attached, meaning this is an extension to normal compression.
QuestionHow do I find a Microsoft Forms 2.0 Control in a VC6 Project? [modified] Pin
JohnnyG29-Mar-11 8:52
JohnnyG29-Mar-11 8:52 
AnswerRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
Hans Dietrich29-Mar-11 10:32
mentorHans Dietrich29-Mar-11 10:32 
GeneralRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
JohnnyG30-Mar-11 2:27
JohnnyG30-Mar-11 2:27 
GeneralRe: How do I find a Microsoft Forms 2.0 Control in a VC6 Project? Pin
JohnnyG30-Mar-11 5:21
JohnnyG30-Mar-11 5:21 
QuestionHow do I get the ID of ComboBox? Pin
jhoesche0229-Mar-11 7:00
jhoesche0229-Mar-11 7:00 
AnswerRe: How do I get the ID of ComboBox? Pin
Albert Holguin29-Mar-11 7:58
professionalAlbert Holguin29-Mar-11 7:58 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
jhoesche0229-Mar-11 8:44
jhoesche0229-Mar-11 8:44 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
Albert Holguin29-Mar-11 8:48
professionalAlbert Holguin29-Mar-11 8:48 
AnswerRe: How do I get the ID of ComboBox? Pin
Maximilien29-Mar-11 8:23
Maximilien29-Mar-11 8:23 
GeneralRe: How do I get the ID of ComboBox? [SOLVED] Pin
jhoesche0229-Mar-11 8:46
jhoesche0229-Mar-11 8:46 
GeneralRe: How do I get the ID of ComboBox? Pin
Niklas L30-Mar-11 0:48
Niklas L30-Mar-11 0:48 
AnswerRe: How do I get the ID of ComboBox? Pin
Richard MacCutchan29-Mar-11 10:48
mveRichard MacCutchan29-Mar-11 10:48 
QuestionOUT parameters in inline asm Pin
csrss29-Mar-11 3:25
csrss29-Mar-11 3:25 
AnswerRe: OUT parameters in inline asm [SOLVED] Pin
csrss29-Mar-11 4:17
csrss29-Mar-11 4:17 
QuestionBit extraction from byte Pin
sathishrdh29-Mar-11 2:22
sathishrdh29-Mar-11 2:22 
AnswerRe: Bit extraction from byte Pin
Niklas L29-Mar-11 2:27
Niklas L29-Mar-11 2:27 
GeneralRe: Bit extraction from byte Pin
Albert Holguin29-Mar-11 3:50
professionalAlbert Holguin29-Mar-11 3:50 

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.