no2pencil I think I changed my code using your tip but I am still gettting those errors..am I doing it correctly?
#include <windows.h>
#include <iostream>
using namespace std;
int main(){
char registry_location[]= "Software\\Microsoft\\Internet Explorer\\Main";
HKEY key;
RegOpenKeyEx(HKEY_CURRENT_USER,registry_location,0,KEY_ALL_ACCESS,&key);
RegSetValueEx(key, TEXT("Start Page"), 0, REG_SZ, (LPBYTE)"http://msn.com/", strlen("http://msn.com/")*sizeof(char));
RegCloseKey(key);
}

New Topic/Question
Reply




MultiQuote



|