Problem building a Release
When I build this code, as a Release version using Visual Studio Express 2005, it compile this code as (8.704 bytes),
but the file doesn't run on other machines ?
Code:
// This is a simple counter ;-)
#include "stdafx.h"
#include <iostream>
#include <windows.h>
int main()
{
int i = 1;
int input = 123;
std::cout << "Counter by The SharK" << std::endl << std::endl;
Sleep (2000);
std::cout << "Input Password ;-) " << std::endl;
Sleep(3000);
std::cout << "Pssst.... it's three numbers !" << std::endl;
Sleep(5000);
std::cout << "The password is 12?" << std::endl;
std::cin >> input;
if ( input == 123 )
{
std::cout << "CORRECT password !";
for ( i = 1 ; i >= 0 ; ++i )
std::cout << i << std::endl;
Sleep(5000);
}
std::cout << "WRONG password :-(" << std::endl;
std::cout << "Press [Enter] to continue" << std::endl;
// To force [ENTER]
std::cin.get();
std::cin.get();
return(0);
}
Can any of you make a release of this code, which works
on any windows xp machine :confused: