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. "Windows (Vista) cannot find “abc.def”. Make sure you typed the name correctly and then try again."

"Windows (Vista) cannot find “abc.def”. Make sure you typed the name correctly and then try again."

Scheduled Pinned Locked Moved C / C++ / MFC
comhelp
7 Posts 2 Posters 1 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.
  • N Offline
    N Offline
    Neville Franks
    wrote on last edited by
    #1

    In Windows Vista (only) when I double click on a file in Windows Explorer that is associated with my application Vista displays: Windows cannot find "abc.def". Make sure you typed the name correctly and then try again." Where abc.def is the file I double click on in Explorer and it is associated with my app. My app starts, if it isn't already running and the file does get opened correctly. Likewise if my app is already running the file is opened correctly. But this error is always displayed. If instead I use "Open With" and select my app the file opens and no error is displayed. I've Google'd and found various posts from people getting this error with Word, Excel files etc. but no real solution.

    Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

    S 1 Reply Last reply
    0
    • N Neville Franks

      In Windows Vista (only) when I double click on a file in Windows Explorer that is associated with my application Vista displays: Windows cannot find "abc.def". Make sure you typed the name correctly and then try again." Where abc.def is the file I double click on in Explorer and it is associated with my app. My app starts, if it isn't already running and the file does get opened correctly. Likewise if my app is already running the file is opened correctly. But this error is always displayed. If instead I use "Open With" and select my app the file opens and no error is displayed. I've Google'd and found various posts from people getting this error with Word, Excel files etc. but no real solution.

      Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Neville - a suggestion - why not use Process Monitor[^] to see what Windows is actually looking at - you may well find the operation that can't find abc.def, and that might give you the clue you need to solve the problem? That's what I'd do, anyway! :)

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      N 1 Reply Last reply
      0
      • S Stuart Dootson

        Neville - a suggestion - why not use Process Monitor[^] to see what Windows is actually looking at - you may well find the operation that can't find abc.def, and that might give you the clue you need to solve the problem? That's what I'd do, anyway! :)

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        N Offline
        N Offline
        Neville Franks
        wrote on last edited by
        #3

        Thanks Stuart. I just tried PM and scanned several thousand log entries but nothing really stood out. MS has changed (broken) various aspects of File Associations with Vista and MFC in VS2008 has not been updated to address these issues. That said I don't think this is the cause of the error. It seems as though Windows Explorer is misreading what is going on.

        Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

        S 1 Reply Last reply
        0
        • N Neville Franks

          Thanks Stuart. I just tried PM and scanned several thousand log entries but nothing really stood out. MS has changed (broken) various aspects of File Associations with Vista and MFC in VS2008 has not been updated to address these issues. That said I don't think this is the cause of the error. It seems as though Windows Explorer is misreading what is going on.

          Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          Neville Franks wrote:

          MS has changed (broken) various aspects of File Associations with Vista

          Mostly to do with DDE from what I've read?

          Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

          N 1 Reply Last reply
          0
          • S Stuart Dootson

            Neville Franks wrote:

            MS has changed (broken) various aspects of File Associations with Vista

            Mostly to do with DDE from what I've read?

            Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

            N Offline
            N Offline
            Neville Franks
            wrote on last edited by
            #5

            Stuart Dootson wrote:

            Neville Franks wrote: MS has changed (broken) various aspects of File Associations with Vista Mostly to do with DDE from what I've read?

            Yes DDE no longer works in Vista from Explorer, yet CDocManager::RegisterShellFileTypes() still registers as a DDE client. Further RegisterShellFileTypes() still uses HKEY_CLASSES_ROOT which can't be used on Vista. There is a Linker option "Per-User Config" and AfxSetPerUserRegistration() which I assume trigger RegOverridePredefKey() so HKCR morphs across to HKCU. And finally Vista has a new IApplicationAssociationRegistration::SetAppAsDefault Method which adds an app to the list of Default Applications and uses HKCR!!! It only took me most of yesterday to get to the bottom of this. (:

            Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

            S 1 Reply Last reply
            0
            • N Neville Franks

              Stuart Dootson wrote:

              Neville Franks wrote: MS has changed (broken) various aspects of File Associations with Vista Mostly to do with DDE from what I've read?

              Yes DDE no longer works in Vista from Explorer, yet CDocManager::RegisterShellFileTypes() still registers as a DDE client. Further RegisterShellFileTypes() still uses HKEY_CLASSES_ROOT which can't be used on Vista. There is a Linker option "Per-User Config" and AfxSetPerUserRegistration() which I assume trigger RegOverridePredefKey() so HKCR morphs across to HKCU. And finally Vista has a new IApplicationAssociationRegistration::SetAppAsDefault Method which adds an app to the list of Default Applications and uses HKCR!!! It only took me most of yesterday to get to the bottom of this. (:

              Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #6

              Hopefully it won't change too much more for Windows 7...:~

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

              N 1 Reply Last reply
              0
              • S Stuart Dootson

                Hopefully it won't change too much more for Windows 7...:~

                Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

                N Offline
                N Offline
                Neville Franks
                wrote on last edited by
                #7

                Stuart Dootson wrote:

                Hopefully it won't change too much more for Windows 7...Unsure

                Well I'll be testing that next. But one has to assume (pray/hope) it is the same as Vista. I think I've finally found the cause which is a lurking HKCR shell\open\ddeexec = [open("%1")] entry. I thought I'd got rid of these, but this one reappeared. Maybe I'll end the week (Oz) on a good note after all.

                Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com

                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