I found an example on threads but I'm having trouble ripping it to a new project....

Code:
#include <iostream.h>
#include <fstream.h>
#include <time.h>
#include <windows.h>

HANDLE HThread;
unsigned long ThreadH;
unsigned long _stdcall getchthread(void* data);

int main()
{
	HThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)getchthread,(LPVOID)0,0,&ThreadH);
	

	TerminateThread(HThread,0);
	return 0;
}

unsigned long _stdcall getchthread(void* data)
{
	while(1)
	{
		cout<<"HELLO"<<endl;
	}
    return 0;
}
what am I missing