Article View: borland.public.cppbuilder.nativeapi
Article #10923Re: SHGetSpecialFolderPath wired problem..please help
From: Ed Mulroy [TeamB]
Date: Sun, 21 Mar 2004 22:47
Date: Sun, 21 Mar 2004 22:47
58 lines
3878 bytes
3878 bytes
I do not know if it works in earlier versions of IE. I don't know of anyone who runs such old versions. If you have a sacrificial machine or are running VmWare or Virtual PC then you might want to just install an old version of IE and try it: http://browsers.evolt.org/ I have not tried to get IE to tell me its version. My main idea of how to work with IE is by using a powerful HTML editor, notepad. (for example: http://www.mulroy.org/programg.htm). I looked around and found this site which speaks of how to determine the IE version from registry entries: http://balasainet.com/iesupersite/faqs/ieversion.htm This site presents some Delhi code which purports to do it (although at first glance it does not seem to be do what the other site claims is needed for versions <5): http://www13.brinkster.com/vincenzog/printart.asp?idart=16 Since Microsoft gives IE out for free and IE 5 is already years old, someone running IE version 4 or before has bigger problems than if your software will work. You might want to show them how to replace their 8-track with a CD Player and introduce them to new-fangled stuff like cell phones. <g> By the way, if any of them are missing then when it starts IE will always recreate index.dat and history files. What you are doing with the code is deleting the information contained in them and the re-creation is not going to re-create the information. The only sure way I know of delete the index.dat files is by rebooting to DOS and killing them. I have a "quicky" utility that I threw together because I clean my cache a lot and was getting tired of manually picking through the cookies to keep those I want and kill those I didn't. While I did not champion it as "production code" it seems to work. I've made a zip file of it and am aiming it at your email box. It's a 7K zip file renamed to have a .zx extension so that AOL won't freak thining it's one of those evil zip files that people who actually know how the Internet works use <g> . Ed > Martin C wrote in message > news:405debb2$1@newsgroups.borland.com... > > Wow that is really cool Ed, and thank you so much for your > detailed reply and testing. > > Since it is all a matter of IE version, not OS version, what would > you suggest as an alternative way if I detected IE version < 5.5 > on the user machine. Cause regular delete of the History folder > contents does not work at all. When I tried to use regular delete > function to delete contents of the history folder, it successfully > deleted all contents except the index.dat files, and when I tried > to start IE again, all history files where re-created again! > > Once again thank you for your help and support.
Technical Details
Message-ID:
<405e1b9f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-kar1.dfn.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<405d9a1b@newsgroups.borland.com> <405db80c@newsgroups.borland.com> <405dc123$1@newsgroups.borland.com> <405debb2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2997fc081f04d0de X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-21 15:09:30 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <405d9a1b@newsgroups.borland.com> <405db80c@newsgroups.borland.com> <405dc123$1@newsgroups.borland.com> <405debb2$1@newsgroups.borland.com> Subject: Re: SHGetSpecialFolderPath wired problem..please help Date: Sun, 21 Mar 2004 17:47:51 -0500 Lines: 60 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <405e1b9f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079909279 24.74.175.102 (21 Mar 2004 14:47:59 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-kar1.dfn.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail