Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. What is this called?

What is this called?

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Waldermort
    wrote on last edited by
    #1

    Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and IS_INVALID() doesn't really make for clear understanding.

    Waldermort

    M K L 3 Replies Last reply
    0
    • W Waldermort

      Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and IS_INVALID() doesn't really make for clear understanding.

      Waldermort

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      I thought they were "shortcuts" in DOS... Maybe this will help: Why is the period a shortcut for the current directory?[^]

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      W 1 Reply Last reply
      0
      • M Mark Salsbery

        I thought they were "shortcuts" in DOS... Maybe this will help: Why is the period a shortcut for the current directory?[^]

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        W Offline
        W Offline
        Waldermort
        wrote on last edited by
        #3

        I suppose IS_SHORTCUT() is better than IS_INVALID()

        Waldermort

        M 1 Reply Last reply
        0
        • W Waldermort

          I suppose IS_SHORTCUT() is better than IS_INVALID()

          Waldermort

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Or IS_DOSSHORTCUT or IS_DIRSHORTCUT or IS_SHORTCUTDIR... :) Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          W 1 Reply Last reply
          0
          • M Mark Salsbery

            Or IS_DOSSHORTCUT or IS_DIRSHORTCUT or IS_SHORTCUTDIR... :) Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            W Offline
            W Offline
            Waldermort
            wrote on last edited by
            #5

            Or IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS()

            Waldermort

            M 1 Reply Last reply
            0
            • W Waldermort

              Or IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS()

              Waldermort

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              WalderM wrote:

              IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS

              Perfect!  Self-commenting too! :laugh:

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              • W Waldermort

                Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and IS_INVALID() doesn't really make for clear understanding.

                Waldermort

                K Offline
                K Offline
                krmed
                wrote on last edited by
                #7

                If you're using MFC, why not use the IsDots[^]method of the CFileFind class. Hope that helps.

                Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                1 Reply Last reply
                0
                • W Waldermort

                  Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and IS_INVALID() doesn't really make for clear understanding.

                  Waldermort

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  WalderMs there a common name for them like 'reparse point' or something?

                  I'm not sure if this is the answer you're looking for, but . is a pointer to the Current directory while .. is a pointer to the parent directory.

                  Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups