Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Mutiple Comports Pin
SandipG 25-Aug-08 21:45
SandipG 25-Aug-08 21:45 
QuestionHandle desktop events Pin
Haim Nachum25-Aug-08 10:52
Haim Nachum25-Aug-08 10:52 
AnswerRe: Handle desktop events Pin
Perspx25-Aug-08 11:38
Perspx25-Aug-08 11:38 
GeneralRe: Handle desktop events Pin
Haim Nachum25-Aug-08 11:51
Haim Nachum25-Aug-08 11:51 
AnswerRe: Handle desktop events Pin
Perspx25-Aug-08 12:48
Perspx25-Aug-08 12:48 
GeneralThanks man! Pin
Haim Nachum25-Aug-08 12:54
Haim Nachum25-Aug-08 12:54 
QuestionMSXML error Pin
Lance Hudson25-Aug-08 10:39
Lance Hudson25-Aug-08 10:39 
QuestionPredefined license numbers Pin
robotz25-Aug-08 9:20
robotz25-Aug-08 9:20 
Hi!

I want to protect my software with very simple mechanism. I will generate license number and when user purchase my software, I will send him that number by email. It will look like HTUG-F4DK2-EKFJ-JIII32. I cannot get his information (like name or company name), so I need something like this:

if(editbox_text == "HTUG-F4DK2-EKFJ-JIII32") MessageBox("congratulations");

How to make that more secure. Where to store license numbers in my application? Should I crypt them in file and then decrypt them before if statement?

like:

open_file(serial.txt); // I will actually store 5-10 crypted serial numbers IN CODE (and not in file) and every 5-10 copy I sell, I will change license numbers
decrypted_data=decrypt(serial.txt,decrypted_data);
if(edit_box_text == decrypted_data) MessageBox("congratulations");

Is this good?

I do not want to make complicated mechanism.

How to crypt that numbers?

Thank you!
AnswerRe: Predefined license numbers Pin
Expert Coming25-Aug-08 12:36
Expert Coming25-Aug-08 12:36 
AnswerRe: Predefined license numbers [modified] Pin
enhzflep25-Aug-08 15:29
enhzflep25-Aug-08 15:29 
GeneralRe: Predefined license numbers Pin
robotz26-Aug-08 5:02
robotz26-Aug-08 5:02 
GeneralRe: Predefined license numbers Pin
enhzflep26-Aug-08 11:41
enhzflep26-Aug-08 11:41 
GeneralRe: Predefined license numbers Pin
robotz26-Aug-08 11:51
robotz26-Aug-08 11:51 
Questionhow do i convert a unsigned char to int ? Pin
Sakthiu25-Aug-08 5:20
Sakthiu25-Aug-08 5:20 
AnswerRe: how do i convert a unsigned char to int ? Pin
toxcct25-Aug-08 5:31
toxcct25-Aug-08 5:31 
GeneralRe: how do i convert a unsigned char to int ? Pin
Mark Salsbery25-Aug-08 5:32
Mark Salsbery25-Aug-08 5:32 
JokeRe: how do i convert a unsigned char to int ? Pin
toxcct25-Aug-08 5:51
toxcct25-Aug-08 5:51 
GeneralRe: how do i convert a unsigned char to int ? Pin
Mark Salsbery25-Aug-08 6:11
Mark Salsbery25-Aug-08 6:11 
AnswerRe: how do i convert a unsigned char to int ? Pin
Mark Salsbery25-Aug-08 5:32
Mark Salsbery25-Aug-08 5:32 
AnswerRe: how do i convert a unsigned char to int ? Pin
Rajesh R Subramanian25-Aug-08 19:38
professionalRajesh R Subramanian25-Aug-08 19:38 
QuestionCFile for big files Pin
bhanu_850925-Aug-08 5:20
bhanu_850925-Aug-08 5:20 
AnswerRe: CFile for big files Pin
Mark Salsbery25-Aug-08 5:40
Mark Salsbery25-Aug-08 5:40 
GeneralRe: CFile for big files Pin
bhanu_850925-Aug-08 6:03
bhanu_850925-Aug-08 6:03 
QuestionRe: CFile for big files Pin
David Crow25-Aug-08 5:42
David Crow25-Aug-08 5:42 
AnswerRe: CFile for big files Pin
bhanu_850925-Aug-08 6:01
bhanu_850925-Aug-08 6:01 

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.