Disable Close Button

I am making a screensave application that requires a password to exit and resume
using the computer but right now you can just close it making it useless...
Also i was wondering how to make the console window fullscreen...

Any suggestions
Also, if it matters, i'm using 32bit vista and the dev c++ IDE
Sounds like u already got some code... wanna show it?...

how are u doing it?... look at ur window class... there are options and in the event handler methods u can decide what happens...

but u still need to ensure disabling chance to shoot your application via the task manager...



greetz,
Inc
Sure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/* A simple little program to protect the screen
   or run prechosen exe's
   V1.1
   by Ian
*/
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
/*
In future versions:
     *No close button
     *Full screen
     *user input for exe (like run)
     *User chosen password that saves after first time
          *Password changer
*/
///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\///\\\


//"pass" is the password
#define password "pass"
#include <iostream>
#include <fstream>
#include <string.h>

using namespace std;

int main()
{
 //Variables
 int correct, menu;
 char input[50], iinput[50];
 
 //For screensaver and wrong password
 loop:;
 
 //Prompt for password
 printf("What is your password? : ");
 cin >> input;
 correct=strcmp(input, password);//compare input to password, correct=0
 
 //display menu if correct
 if (correct==0)
 {
  printf("Welcome\n");
  printf("1 would you like to open Aerofighter\n");
  printf("2                     or Mage\n");
  printf("3                     or screensaver\n");
  printf("4                     or leave \n\n");
  
  cin >> menu;
  switch (menu){
  case 1: system("AeroFighter.exe");//keep these in same folder as this exe
  case 2: system("Mage_NoAudio.exe");
  case 3: system("cls"); goto loop;
  case 4: return 0; 
  }
 }
 else //if incorrect password
 {
  goto loop;
 }
 return 0;
}


thats it
its imposible in the console, I think... you need a graphics library for that or you could just select prompt for password after stanby or something like that from properties
See: Basic anatomy of a Windows screensaver
http://www.cityintherain.com/howtoscr.html
hmm... I don't have time to read all of it with school and other foolish whatnot but it does look interesting and useful thanx

and csiz i think (hope) you can modify any window
How can you instruct the computer if you don't know what to do?
well i'm asking here because i don't know what to do... if i'm understanding you even almost correctly.
Topic archived. No new replies allowed.