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