Click here to Skip to main content
16,010,544 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting the server name Pin
Shibu19-Sep-02 17:49
Shibu19-Sep-02 17:49 
GeneralRe: Getting the server name Pin
Mazdak19-Sep-02 20:36
Mazdak19-Sep-02 20:36 
GeneralRe: Getting the server name Pin
Mike Nordell20-Sep-02 4:58
Mike Nordell20-Sep-02 4:58 
GeneralEvaluation program Pin
Stew19-Sep-02 17:26
Stew19-Sep-02 17:26 
GeneralRe: Evaluation program Pin
Christian Graus19-Sep-02 17:33
protectorChristian Graus19-Sep-02 17:33 
GeneralRe: Evaluation program Pin
Rohit  Sinha19-Sep-02 21:50
Rohit  Sinha19-Sep-02 21:50 
GeneralRe: Evaluation program Pin
Christian Graus19-Sep-02 21:56
protectorChristian Graus19-Sep-02 21:56 
GeneralRe: Evaluation program Pin
Chris Losinger19-Sep-02 17:34
professionalChris Losinger19-Sep-02 17:34 
it's very difficult to do this 100%... but, as a first try:

1. when your program starts, look in the registry for a key that your app would have created, if it has already run once. if the key isn't there, create it and add a DWORD value. set that value to the result from time().

2. if the key is there, get the value from the registry, get the current time, compare the two.

3. expire if difftime > X

that's a very basic way to do it. it's easy to beat, by just deleting the registry key or changing the system clock. but, if you don't think your customers are that sophisticated, this might be enough.

you can get much more complex, from here.

-c


As always, it's bread and circuses. And while bread is down right now, circuses are way up.

GeneralRe: Evaluation program Pin
Nish Nishant19-Sep-02 18:34
sitebuilderNish Nishant19-Sep-02 18:34 
GeneralA question about pointer of function. Pin
George Ma19-Sep-02 17:16
George Ma19-Sep-02 17:16 
GeneralRe: A question about pointer of function. Pin
Chris Losinger19-Sep-02 17:22
professionalChris Losinger19-Sep-02 17:22 
GeneralRe: A question about pointer of function. Pin
George Ma20-Sep-02 2:29
George Ma20-Sep-02 2:29 
Questionhelp dl issu? Pin
imran_rafique19-Sep-02 16:35
imran_rafique19-Sep-02 16:35 
AnswerRe: help dl issu? Pin
Chris Losinger19-Sep-02 17:28
professionalChris Losinger19-Sep-02 17:28 
Questionhow to?( DLL) Pin
imran_rafique19-Sep-02 15:52
imran_rafique19-Sep-02 15:52 
AnswerRe: how to?( DLL) Pin
Paul M Watt19-Sep-02 19:04
mentorPaul M Watt19-Sep-02 19:04 
QuestionCEditView -> CEdit::ReplaceSel() leaks GDI Objects? Pin
scott sanders19-Sep-02 15:03
scott sanders19-Sep-02 15:03 
AnswerRe: CEditView -> CEdit::ReplaceSel() leaks GDI Objects? Pin
Hans Ruck19-Sep-02 21:41
Hans Ruck19-Sep-02 21:41 
GeneralRe: CEditView -> CEdit::ReplaceSel() leaks GDI Objects? Pin
scott sanders20-Sep-02 6:59
scott sanders20-Sep-02 6:59 
GeneralRe: CEditView -> CEdit::ReplaceSel() leaks GDI Objects? Pin
Hans Ruck20-Sep-02 7:13
Hans Ruck20-Sep-02 7:13 
Generalconsole vs windows Pin
xai19-Sep-02 14:58
xai19-Sep-02 14:58 
GeneralRe: console vs windows Pin
Christian Graus19-Sep-02 15:40
protectorChristian Graus19-Sep-02 15:40 
GeneralRe: console vs windows Pin
xai21-Sep-02 5:26
xai21-Sep-02 5:26 
Questionmechanism for the a dll to send back periodic info? Pin
ns19-Sep-02 12:02
ns19-Sep-02 12:02 
AnswerRe: mechanism for the a dll to send back periodic info? Pin
Chris Losinger19-Sep-02 12:55
professionalChris Losinger19-Sep-02 12:55 

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.