Announcement

Collapse

New Sub-Forum

In an effort to help make sure there are appropriate categories for topics of discussion that are happening, there is now a sub-forum for databases and database programming under Special Interest groups. Please direct questions, etc., about this topic to that sub-forum moving forward. Thank you.
See more
See less

Include Folders Changing

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

  • Include Folders Changing

    I updated to SocketTools v10. I had the SocketTools v9.5 folder listed in the compiler includes so I deleted that and added the v10.0 folder.

    But after a few times opening the IDE, the include list reverts to the previous listing, but with the v9.5 folder listed twice.

    When I changed the include list to v10, I closed the IDE and confirmed that the PBWin.ini file showed the changes. I also searched the Registry and did not find that PBWin uses it to store the include list.

    My PBWin include list has only Jose's includes folder and the SocketTools folder.

    Has anyone else seen a similar problem?

  • #2
    I also searched the Registry and did not find that PBWin uses it to store the include list.
    That's kept in an INI file. For PB Win 10 it's in the bin folder and called pbwin.ini

    Mine with includes highlighted ==>
    Code:
    [Paths]
    Help="D:\Software_Development\PBWin10\bin"
    Templates="D:\Software_Development\PBWin10\bin"
    Settings="D:\Software_Development\PBWin10\bin"
    Backups=".\archive"
    Include0="D:\Software_Development\PBWin10\WinAPI"
    HelpTracked="1"
    Include1="D:\Software_Development\INCLUDE"
    Include2="D:\Software_Development\INCLUDE\ODBC"
    Include3=""
    Include4=""
    Include5=""
    Include6=""
    Include7=""
    Include8=""
    Include9=""
    [Compiler]
    Include0="D:\Software_Development\PBWin10\WinAPI"
    RcInclude0="D:\Software_Development\PBWin10\WinAPI"
    DisplayResults=1
    BeepWhenDone=0
    CreateLog=1
    CreatePBR=1
    Include1="D:\Software_Development\INCLUDE"
    RcInclude1="D:\Software_Development\INCLUDE"
    Include2="D:\Software_Development\INCLUDE\ODBC"
    RcInclude2="D:\Software_Development\INCLUDE\ODBC"
    [Debugger]
    AnimateDelay=150
    BreakOnError=1
    ShowRegisters=0
    ShowVariableWatch=0
    ShowErrSuccess=0
    ShowErrInfo=0
    ShowErrWarning=0
    ShowErrError=1
    RegisterEAX=1
    RegisterEBX=1
    RegisterECX=1
    RegisterEDX=1
    RegisterESI=1
    RegisterEDI=1
    RegisterEIP=1
    RegisterESP=1
    RegisterEBP=1
    RegisterFLG=0
    RegisterFLAGS=1
    RegisterCS=0
    RegisterDS=0
    RegisterES=0
    RegisterSS=0
    RegisterFS=0
    RegisterGS=0
    RegisterCTRL=1
    RegisterSTAT=1
    RegisterST0=1
    RegisterST1=1
    RegisterST2=1
    RegisterST3=1
    RegisterST4=1
    RegisterST5=1
    RegisterST6=1
    RegisterST7=1
    [Editor]
    AutoIndent=1
    BasicExt=".bas"
    BasicIncludeExt=".bi|.inc"
    CaretWrap=0
    ColorSyntax=-1
    KeyWordCase=1
    RecentFiles=9
    BackUpFiles=1
    DisplayToolbar=24
    DisplayStatusBar=1
    AskBeforeExit=1
    ScreenPosn=71,0,640,495,0
    FontName="Lucida Console"
    FontSize=10
    DialogFontName="Arial"
    DialogFontSize=10
    RegisterExts=0
    ResourceExt=".dlg|.rc"
    ResourceIncludeExt=".h"
    ProjectExt=".PBprj|.pbp"
    TabSize=4
    EnTab=0
    Zoom=0
    VirtualSpace=1
    LogicalHome=0
    EditOutputToMsgbox=1
    DebugOutputToMsgbox=0
    ClearMissingRecentFiles=1
    DeleteLineToClipboard=0
    WrapAroundSearch=0
    MaxTabCharacters=20
    ProjectSaveDialog=1
    File000="D:\Software_Development\INCLUDE\sysemt.inc"
    SingleInstance=1
    FilePath="D:\Software_Development\INCLUDE\"
    File001="D:\Software_Development\PBWin10\Work\test_bcs2Bin.bas"
    File002="D:\Software_Development\PBWin10\Work\test_curdir_len.bas"
    File003="D:\Software_Development\PBWin10\SkelFile.bas"
    File004="D:\Software_Development\Projects\EDIFACT_Pal\EDIFACT_TOOL.BAS"
    File005="D:\Software_Development\Projects\Semaphore and Queue Demo\dialogs\MAIN2.DLG"
    File006="D:\Software_Development\Projects\Semaphore and Queue Demo\semaphore_queue_v2.bas"
    File007="D:\Software_Development\INCLUDE\tsLibharu208_consts.inc"
    File008="D:\Software_Development\INCLUDE\TSLIBHARU208.INC"
    File009=""
    [Printer]
    ColorSyntax=-1
    FontName="Courier New"
    FontSize=10
    Header="%fn% - %fs% bytes, modified: %fd% %ft% Page %pc% of %pt%"
    Margins="0.75,1.,0.75,1."
    Units="inches"
    Printer="HP Deskjet D4200 series"
    Position="2,-25"
    Size="217,270"
    [Color]
    Custom00=0000C0
    Custom01=FFFFFF
    Custom02=007F00
    Custom03=C00000
    Custom04=0064C0
    Custom05=C020C0
    Custom06=000000
    Custom07=C56A31
    Custom08=0000FF
    Custom09=FF0000
    Custom10=FFFF00
    Custom11=00FFFF
    Custom12=808000
    Custom13=FF0080
    Custom14=000000
    Custom15=000000
    Custom=1
    AsmFore=0000C0
    AsmBack=FFFFFF
    BasFore=C00000
    BasBack=FFFFFF
    RemFore=007F00
    RemBack=FFFFFF
    PBFormsFore=0064C0
    PBFormsBack=FFFFFF
    StrFore=C020C0
    StrBack=FFFFFF
    TextFore=000000
    TextBack=FFFFFF
    MarkFore=FFFFFF
    MarkBack=C56A31
    BreakFore=FFFFFF
    BreakBack=0000FF
    BookFore=FF0000
    BookBack=FFFF00
    ExecFore=000000
    ExecBack=00FFFF
    UtilityFore=808000
    UtilityBack=FFFFFF
    OperatorFore=FF0080
    OperatorBack=FFFFFF
    [OutputWindow]
    Height=2
    Position="122,96"
    [CommandLine]
    Line0="HELLO_WORLD"
    Line1="/param1 /param2"
    Line2="/param1/param2"
    Line3="setup"
    Line4=""
    Line5=""
    Line6=""
    Line7=""
    Line8=""
    Line9=""
    Position="222,124"
    Size="186,74"
    [Options]
    Position="194.285714285714,103"
    [FindDlg]
    Position="380,287"
    [CodeFinder]
    Position="31,38"
    Size="457,219"
    ColumnOrder=012345
    ColumnWidths="287,340,80,80,80,397"
    KeyColumn=1
    FindInAll=0
    [GoToLineDlg]
    Position="68,165"
    [ReplaceDlg]
    Position="551,214"
    [CompileSource]
    Position="3,33"
    Size="339,258"
    [PrimarySource]
    File=""
    Position="0,0"
    Size="418,311"
    e="418,311"
    e="418,311"
    e="418,311"
    e="418,311"
    e="418,311"
    e="418,311"
    e="418,311"
    [RegisterWatcher]
    Position="1086,27"
    Size="139,209"
    ColumnWidths="77,154"
    [VariableWatcher]
    Position="323,638"
    Size="273,63"
    ColumnWidths="114,114"
    s="114,114"
    s="114,114"
    s="114,114"
    s="114,114"
    s="114,114"
    s="114,114"
    s="114,114"
    [ProjectSaveList]
    File=""
    Position="0,0"
    Size="215,277"
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      MCM,
      Thanks for the response, but as I mentioned in the opening post, I was aware of the PBWin.ini file and confirmed that the changes were present in the ini file.

      Before making the changes to the include folders list, I also made sure that no other copies of the IDE were open to prevent an open instance from restoring the older INI setttings when it closes.


      Comment


      • #4
        I deleted the pbwin.ini file and the default.pbprj files. When I open/close the IDE, the v9.5 include location is present in both. It's picking it up from somewhere ... just haven't found it yet.

        Comment


        • #5
          I don't know if this is what you're after..
          From the history.txt files included with PBWin10:

          "PBCC.ini and PBWIN.ini are no more. IDE settings are stored in the registry, under HKCU\PowerBASIC\compilername\versionnumber\IDE"

          Comment


          • #6
            Originally posted by Paul Dixon View Post
            I don't know if this is what you're after..
            From the history.txt files included with PBWin10:

            "PBCC.ini and PBWIN.ini are no more. IDE settings are stored in the registry, under HKCU\PowerBASIC\compilername\versionnumber\IDE"
            Which PBWIn10. I'm running 10.04 and my History.txt only shows changes from 10.02 to 10.03
            I certainly don't have any registry entries that look anything like that.
            The closest is:
            HKEY_CURRENT_USER\Software\PowerBASIC\PB/Win\10.04\Compiler and it only has one value: Compiler = C:\PBWin10\bin\PBWin.exe

            My PBWIn.ini is updated every time I use PBEdit.

            Comment


            • #7
              I use 10.04. My pbwin.ini file is also updated each time. I searched the registry and the v9.5 information is not found in the Registry. Also, the registry setting given in #5 above is not found in my registry.

              I know the v9.5 information is stored somewhere, but where it is eludes me. The search continues!

              Comment


              • #8
                Stuart,
                It's in my PBWin10/bin folder.
                The file is dated 5/1/2011

                It looks like it's a file from Beta testing so maybe it wasn't included with the released compiler.
                I can see entries in my registry:

                Click image for larger version

Name:	registry.GIF
Views:	71
Size:	22.6 KB
ID:	797184

                Comment


                • #9
                  Looks like that's obsolete (it's in the PBWin10\10.00 tree). Is there anything similar in the 10.03 or 10.04 trees?

                  (And it seems a bit strange that the various paths for PBWin are "..\PBCC60\..." ??)

                  Comment


                  • #10
                    As a further test, I took a snapshot of the Registry using the NirSoft RegistryChangesView utility. Then I changed the IDE include folder list, shut down the IDE and compared the snapshot to the current Registry content. The Registry showed no changes as a result of changing the include folder list.

                    Comment


                    • #11
                      Found the problem. I tracked down the reversion of the IDE include folder list as happening when I opened up a particular PowerBASIC Project file (*.PBprj).

                      The PBprj file format includes the include folder list that is in effect when the PBPrj is saved. I knew that the default PBprj file had include folder information but did not know that PBprj files I saved also had them. Should have known. Might have known at one time, but forgot.

                      When the PBprj file is loaded, whatever include folder list it has will be used to permanently replace the current include folder list. I did not know that either.

                      Now I know!



                      Comment

                      Working...
                      X