NO

Author Topic: Program Settings in the INI file ?  (Read 2537 times)

eutic04

  • Guest
Program Settings in the INI file ?
« on: November 25, 2005, 05:54:42 pm »
Hello, MR. Pelle

why you do not store the program settings (Dir Include,Dir Lib, Dir PlugIn,Text Colors, etc)
in INI file (Es. in the Setting.ini in \BIN Dir ) to the place that in the Windows registry

in such way to render the portable program to store it in the pendrive

Excuse me for my poor English, sorry!

Ciao !
Eutic04

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1974
    • http://www.smorgasbordet.com
Program Settings in the INI file ?
« Reply #1 on: November 26, 2005, 05:59:30 pm »
Maybe - I think the Registry is much more convenient to work with than INI files.

No exactly sure what you want to do, but another approach might be Export/Import Settings - like in other IDE's?

Pelle
/Pelle

eutic04

  • Guest
Program Settings in the INI file ?
« Reply #2 on: November 26, 2005, 10:25:47 pm »
ok... I meant to say

In my Windows Registry I have these keys:

Code: [Select]

Windows Registry Editor Version 5.00
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories]
"ProjectDir"="D:\\PellesC\\Projects\\My Work"
"LibraryDirs"="D:\\PellesC\\Lib;D:\\PellesC\\Lib\\Win"
"IncludeDirs"="D:\\PellesC\\Include;D:\\PellesC\\Include\\Win;D:\\PellesC\\Include\\Win\\gl"
"PathDirs"="D:\\PellesC\\Bin"
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Colors]
"Text_FG"=dword:00800000
"Text_BG"=dword:00f5f5f5
"Seltext_FG"=dword:00ffffff
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Application]
"AppWindow"="-4 -4 1028 742 1"
"ProjPaneWidth"=dword:000000c8
"ProjPaneLeft"=dword:00000001
...


poide.exe loads from the Registry these informations before run ( is true ?)

I would want that the informations are not loaded from the registry but from the file es. Setting.ini

Why if i install Pelles IDE in pendrive i can to use it in any Windows

I hope to have been clear...

Ciao !
Eutic04

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1974
    • http://www.smorgasbordet.com
Program Settings in the INI file ?
« Reply #3 on: November 28, 2005, 10:23:02 pm »
OK, I understand. As I said before: *maybe*. This will affect several places in the code, and INI files are not very "nice" to work with...

Pelle
/Pelle