The Program now compiles, but does not open the file. Here is the code:
Code:
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <cstdlib>
#include <string>
#include <tchar.h>
#include <Shellapi.h>
using namespace std;
int main()
{
	ShellExecute(NULL, _T("C:\\p1.html"), NULL, NULL, NULL, SW_SHOWNORMAL);	
	cout << " HI" << endl;
	system ("PAUSE");
	return 0;
}