NO

Author Topic: Default paths  (Read 4953 times)

JohnF

  • Guest
Default paths
« on: October 12, 2005, 08:00:04 AM »
If I open any old project the default folders are set to these

x:\Microsoft Visual Studio\VC98\lib
x:\Microsoft Visual Studio\VC98\mfc\lib

x:\Microsoft Visual Studio\VC98\alt\include
x:\Microsoft Visual Studio\VC98\mfc\include
x:\Microsoft Visual Studio\VC98\include

I've tried taking these out of the registry buy the IDE still gets the same folders.

I could open evey .ppj file and add these lines

LIB = folders lib paths
INCLUDE = folders header paths

But that would take a long time.

Ideas anyone?

John

JohnF

  • Guest
Default paths
« Reply #1 on: October 12, 2005, 08:54:05 PM »
Fixed. Someone contacted me and suggested that I look at the system environment variables.

Should have thought of that myself, although it never used to be a problem.

John

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Default paths
« Reply #2 on: October 13, 2005, 02:43:31 PM »
Defaults for projects without private settings should be taken from Tools -> Options -> Folders.

The Setup program will initialize it like this (assuming the "root" is C:\Program\PellesC):

Executables:
C:\Program\PellesC\Bin

Libraries:
C:\Program\PellesC\Lib
C:\Program\PellesC\Lib\Win

Includes:
C:\Program\PellesC\Include
C:\Program\PellesC\Include\Win
C:\Program\PellesC\Include\Win\gl

Pressing the "Defaults" button will remove the settings, and displaying values from the environment variables "PATH", "LIB" and "INCLUDE".

The path settings are stored in the Registry (REG_SZ):
HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories:
PathDirs = "C:\Program\PellesC\Bin"
LibraryDirs = "C:\Program\PellesC\Lib;C:\Program\PellesC\Lib\Win"
IncludeDirs = "C:\Program\PellesC\Include;C:\Program\PellesC\Include\Win;C:\Program\PellesC\Include\Win\gl"

Pelle
/Pelle

JohnF

  • Guest
Default paths
« Reply #3 on: October 13, 2005, 04:53:31 PM »
I don't see those registry settings here.

In HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories

I have two entries, 'FindInFileDir' and 'ProjectDir'

John

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Default paths
« Reply #4 on: October 13, 2005, 07:31:33 PM »
I can't explain where the Registry settings went - but it should explain why you see "x:\Microsoft Visual Studio\VC98\lib" ...

You must have environment variables PATH, LIB, INCLUDE pointing at some MSVC installation. You will see these values when there are no settings in the Registry (=use defaults =use environment).

If you use the "New folder" button, to the right of the Type combo, in Tools -> Options -> Folders, and add a new folder, the settings will differ from the defaults (in the environment), and the value will be saved to the Registry...

Pelle
/Pelle

JohnF

  • Guest
Default paths
« Reply #5 on: October 13, 2005, 08:21:26 PM »
Quote from: "Pelle"
I can't explain where the Registry settings went - but it should explain why you see "x:\Microsoft Visual Studio\VC98\lib" ...

You must have environment variables PATH, LIB, INCLUDE pointing at some MSVC installation. You will see these values when there are no settings in the Registry (=use defaults =use environment).


I have already changed the environment variables to point to the PellesC folders which sorted my problem.

Quote

If you use the "New folder" button, to the right of the Type combo, in Tools -> Options -> Folders, and add a new folder, the settings will differ from the defaults (in the environment), and the value will be saved to the Registry...


Nothing gets added to the registry when I do that, sorry.

EDIT: But whatever I add that way, gets added to the .ppj file.

Like this
LIB = ...

John

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Default paths
« Reply #6 on: October 13, 2005, 09:01:21 PM »
Sure you are in the correct dialog?

Project -> Project Options -> Folders will update settings for the given project - changes are written to the PPJ file.

Tools -> Options -> Folders will update global settings - changes are written to the Registry. Used as defaults for projects without private settings.

Pelle
/Pelle

Offline Robert

  • Member
  • *
  • Posts: 245
the Registry settings went ...
« Reply #7 on: October 13, 2005, 09:03:58 PM »
Hi John:

On my machine the path settings are as Pelle described above plus I have a ProjectDir setting which contains the path to the last project opened.

The order on my machine under

HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories:

is IncludeDirs, LibraryDirs, PathDirs and ProjectDir.

I suggest that a reinstall should re-establish the correct entries unless you have something malicious sabotaging it.

Robert Wishlaw

JohnF

  • Guest
Default paths
« Reply #8 on: October 13, 2005, 09:18:00 PM »
Quote from: "Pelle"
Sure you are in the correct dialog?

Project -> Project Options -> Folders will update settings for the given project - changes are written to the PPJ file.

Tools -> Options -> Folders will update global settings - changes are written to the Registry. Used as defaults for projects without private settings.

Pelle


No, I was in Project Options, sorry to have bothered you.

John

JohnF

  • Guest
Re: the Registry settings went ...
« Reply #9 on: October 13, 2005, 09:19:43 PM »
Quote from: "Robert"
Hi John:

On my machine the path settings are as Pelle described above plus I have a ProjectDir setting which contains the path to the last project opened.

The order on my machine under

HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories:

is IncludeDirs, LibraryDirs, PathDirs and ProjectDir.

I suggest that a reinstall should re-establish the correct entries unless you have something malicious sabotaging it.

Robert Wishlaw


:oops: See above.

John