Announcement

Collapse
No announcement yet.

#include "..\???"

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

    #include "..\???"

    Code:
        #include "..\include\const.inc"
    makes it possible to go one dir up.

    But what should i do to go 2 dir's up?

    Regards
    Peter


    ------------------
    [email protected]
    [email protected]
    www.dreammodel.dk

    #2
    I didn't try it with #INCLUDE but the usual syntax is...

    Code:
    "..\..\whatever.inc"
    That works at a command prompt, anyway.

    -- Eric

    ------------------
    Perfect Sync Development Tools
    Perfect Sync Web Site
    Contact Us: mailto:[email protected][email protected]</A>
    "Not my circus, not my monkeys."

    Comment


      #3
      Eric,

      I have tried it. It is not working...

      Regards
      Peter

      ------------------
      [email protected]
      [email protected]
      www.dreammodel.dk

      Comment


        #4
        I just tried it, and it works for me.

        I put a file called TEST.BAS in my root dir and did this in my program...

        Code:
        #INCLUDE "..\..\TEST.BAS"
        I have my compiler set up to run from C:\PB\WORKING\ so it went up two levels and found the file, no problem.

        -- Eric


        ------------------
        Perfect Sync Development Tools
        Perfect Sync Web Site
        Contact Us: mailto:[email protected][email protected]</A>

        [This message has been edited by Eric Pearson (edited October 05, 2001).]
        "Not my circus, not my monkeys."

        Comment


          #5
          Works also fine for me on NT4/SP6. Maybe different handling on w9x platforms?


          ------------------
          Peter.
          mailto[email protected][email protected]</A>
          Regards,
          Peter

          "Simplicity is a prerequisite for reliability"

          Comment


            #6
            For Win9x, use one additional . for each directory level. I don't
            recall about Win95, but I *believe* the limit for Win98 is 4
            dots.

            Put two dots to go up one directory, like ..\, then add one dot
            for each additional directory.

            Regards,


            ------------------
            Clay C. Clear

            Clay Clear's Software
            mailto:[email protected][email protected]</A>

            Comment


              #7
              Eric's syntax is correct and will work on all DOS and Windows platforms
              (since DOS 2.0, when directories were introduced). Reverse the slashes,
              and the same syntax will work on Unix platforms.

              ------------------
              Tom Hanlin
              PowerBASIC Staff

              Comment

              Working...
              X
              😀
              🥰
              🤢
              😎
              😡
              👍
              👎