Added a program to autorun as follows:
TRegistry *reg = new TRegistry(); reg->RootKey=HKEY_CURRENT_USER; reg->OpenKey("Software\\Microsoft\\Windows\\CurrentVersion\\Run",true); reg->WriteString("Test", Application->ExeName); reg->CloseKey(); reg->Free(); I restarted the computer, and the program starts up, although the autorun has been added
What is wrong with me?