Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003

    How Editing/Creating Reg Files with C/C++?

    How do you edit/create registry files with C/C++?

    How do you edit the reg files mainly, and if you happen to know how to create them that too I guess?
    E, the modern pi.

  2. #2
    Senior Member
    Join Date
    Oct 2003
    I don't know much C/C++, but you can just create a temporary file with a .reg extension, write your registry commands to it, and call system(strcat("regedit /s ", "Name of .reg")); to register it. Windows registry files for 9x should look like this:

    [name of key] "name of value"=type:value

    and Windows 2000/XP registry files should look like this:

    Windows Registry Editor Version 5.00
    [name of key] "name of value"=type:value

    I hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts