Look at the following code which compares for an argument string in the command line:

Code:
if (argc <= 1 || argc >= 3)
		DisplayHelp();

	// interpretar la linea de comandos
	
	char* param = new char[strlen(argv[1])+1];
	strcpy (param, argv[1]);

	if (param == "-s")
	{
		cout << "SAVeonly" << endl;
	}
	exit(1);
I enter -s to test in the command line and the if statement fails!!!
Where I can't compare param == "-s"?? There is anything related to the way i create char*param=new... etc... ???

Thank you!