Announcement

Collapse
No announcement yet.

reading and writing values to the Windows registry

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • reading and writing values to the Windows registry

    Does someone have sample Powerbasic for Windows code they can post to give me an example of reading and writing values to the Windows registry? If possible, it would also be nice to be able to create new registry keys, but I'm most concerned with reading/writing for existing keys. I know of the details are included in the the Win32 Programmer's Reference, but I'm not good at translating that document into PB code.

    Also, can somebody give me a speed comparison for reading/writing a value to the registry versus reading/writing the same value to an INI file? To date, I've always used INI files, but I'm wondering if speed and performance are paramount, would I be better off using the registry? Of course, sometimes I have to use the registry regardless in order to interact with another application.

    Thanks.

  • #2
    Registry functions by Pierre Bellisle.

    > Also, can somebody give me a speed comparison for reading/writing a value to the registry versus reading/writing the same value to an INI file?

    RAM vs disk - that's it.

    Comment


    • #3
      Some more useful links here:
      http://www.powerbasic.com/support/fo...ML/001929.html
      http://www.powerbasic.com/support/fo...ML/008817.html
      http://www.powerbasic.com/support/fo...ML/011035.html

      I wouldn't think that speed would normally be an issue when accessing registry or Ini file entries - do you have a use in mind where they will be read/written repeatedly?
      Rgds, Dave

      Comment

      Working...
      X