Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWindows Messenger Addin Pin
[xan]15-Nov-02 1:45
[xan]15-Nov-02 1:45 
GeneralProperty Sheet placement Pin
Richard Lewis15-Nov-02 0:45
Richard Lewis15-Nov-02 0:45 
GeneralPlease Help........ Pin
Prateeti15-Nov-02 0:12
Prateeti15-Nov-02 0:12 
GeneralRe: Please Help........ Pin
Rickard Andersson2015-Nov-02 0:42
Rickard Andersson2015-Nov-02 0:42 
GeneralUrgent help needed! Pin
Joan M14-Nov-02 23:58
professionalJoan M14-Nov-02 23:58 
GeneralRe: Urgent help needed! Pin
Daniel Turini15-Nov-02 0:09
Daniel Turini15-Nov-02 0:09 
GeneralRe: Urgent help needed! Pin
Joan M15-Nov-02 0:42
professionalJoan M15-Nov-02 0:42 
GeneralRe: Urgent help needed! Pin
Daniel Turini15-Nov-02 1:06
Daniel Turini15-Nov-02 1:06 
Besides the problem that FindWindow may hang your application, it's an ugly way of being noticed about the other application's shutdown.

Furthermore, are you doing this for software protection?

Well:

Joan Murt wrote:
I will pause the machine, wait for a complete pause, delete all the program files (my program files) and shutdown the PC if I discovers that a wrong code has been entered,
1. Hmmm. In Windows NT and later, I can run the program under an account that do not have the right to do it.
2. Most users just love having their machine purposedly paused or shutdown. I would sue anyone who did this stupid thing in one of my servers. I don't know how are the laws in your country, by brazilian laws, I would make a lot of money.
3. It's easy to create another window with the same caption.
4. It's easy to crack your application. Actually, it's easy to crack almost any application. Spend more time doing useful features and your users will be happy in pay money for you. Mess with their trust and you'll bankrupt.

Excuse me, but I'll not help anyone in creating such a stupid protection scheme for a lame piece of code.


My latest article:
SQL Server DO's and DONT's[^]
GeneralRe: Urgent help needed! Pin
Joan M15-Nov-02 1:42
professionalJoan M15-Nov-02 1:42 
GeneralRe: Urgent help needed! Pin
Daniel Turini15-Nov-02 2:31
Daniel Turini15-Nov-02 2:31 
GeneralRe: Urgent help needed! Pin
Joan M15-Nov-02 3:31
professionalJoan M15-Nov-02 3:31 
GeneralRe: Urgent help needed! Pin
smartptr4-Dec-02 10:11
smartptr4-Dec-02 10:11 
GeneralCHtmlView and IDispatch Pin
Taka Muraoka14-Nov-02 23:30
Taka Muraoka14-Nov-02 23:30 
GeneralProper way to send e-mail Pin
georgiek5014-Nov-02 23:25
georgiek5014-Nov-02 23:25 
GeneralRe: Proper way to send e-mail Pin
benjymous14-Nov-02 23:58
benjymous14-Nov-02 23:58 
GeneralRe: Proper way to send e-mail Pin
Rickard Andersson2015-Nov-02 0:44
Rickard Andersson2015-Nov-02 0:44 
GeneralRe: Proper way to send e-mail Pin
georgiek5015-Nov-02 1:19
georgiek5015-Nov-02 1:19 
GeneralAssociateColorProfileWithDevice Pin
Richard Boesiger14-Nov-02 23:15
Richard Boesiger14-Nov-02 23:15 
GeneralProblem with PaintRgn()... Pin
Neha14-Nov-02 22:51
Neha14-Nov-02 22:51 
GeneralRe: Problem with PaintRgn()... Pin
NormDroid15-Nov-02 8:50
professionalNormDroid15-Nov-02 8:50 
GeneralActive Desktop Pin
Grep14-Nov-02 22:47
Grep14-Nov-02 22:47 
GeneralCreateFile on COM1 Pin
Anonymous14-Nov-02 22:21
Anonymous14-Nov-02 22:21 
GeneralRe: CreateFile on COM1 Pin
NormDroid15-Nov-02 8:49
professionalNormDroid15-Nov-02 8:49 
GeneralGDI+ weird problems Pin
Vije14-Nov-02 22:14
Vije14-Nov-02 22:14 
Generaldialog apps with popups Pin
MattG14-Nov-02 21:55
MattG14-Nov-02 21: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.