![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 482
Rep Power: 3
![]() |
Two years before, I was making in VB a similar thing. I used a special control, named something like Web Control. It displays all icons automatically and also has some useful functions bulit with it( Like back, forward, up... ).
I think that you can find it in VB.net also. |
|
|
|
|
|
#12 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 126
Rep Power: 4
![]() |
The main reason for making this file explorer is so I can debug all problems in it. Like Microsofts File Explorer a common bug keeps coming up in directorys with a large amount of files, says something like "Cannot read from blah.." and explorer crashes. I searched the internet for a similar program like that, that I could use as a replacement and I could not find one. So, to make it possible to view those directorys, I will just make my own version of mircrosofts file explorer, that essentialy does the same thing.
Exploeres dont really use there own set of icons, for the file types atleast. The associated file type icons are global, the program sets it when its installed. The only ones that are default are hte default system icons. So really its not me how needs to make my own, except maybe for the back, refresh, forward, etc buttons on the toolbar. I dont think there is any icon thing built into .NET atleast not one that gets the icon for the associated file type. Ive searched google through and through and finally came up with one result for .NET that does what im trying, it was the only useful result I found after looking through hundreds of web pages. It does basicaly what you were saying to do Rory. I cant get it to work though. http://www.codeguru.com/vb/gen/vb_mi...cle.php/c5597/ That is what I found, it doesnt work because I keep getting on this line: myIcon = System.Drawing.Icon.FromHandle(shinfo.hIcon) That it gives me an error saying its not valid, in the variable view hIcon is equal to 0 so theres a problem somewhere, I worked with this for 2 hours so far changing it around, and I cannot figure out what is wrong. I dont really even understand how the code is working or running either... its hard to follow with the shinfo because its not plainly defined as other variables are. EDIT Actually now trying it exactly as its done on the site, it works, it was the way I modified it in my for each loop that was causing the problem. For some reason it doesnt want to work like im thinking it should. I will try a few things diffrent and do tests on the working and not working one and try to find out whats wrong. |
|
|
|
|
|
#13 | |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 482
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#14 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 126
Rep Power: 4
![]() |
Yea I did download a few things that were "replacements for windows file explorer" they arent similar enough to it though. I like windows explorer the way it is, just it crashes to often, I want to create the most similar thing possible or use the most simalar thing to it, that just has the bugs that cause it to crash fixed, and maybe a few added features, and some I left out.
|
|
|
|
|
|
#15 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 126
Rep Power: 4
![]() |
Gah, I just found out every file browser I have crashes at the same directory. I think I figured out why, when I tried it with my program in run time, I went to the directory and the program exited saying the error was:
"An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll Additional information: [Resource lookup failed - infinite recursion detected. Resource name: Arg_NullReferenceException]" And it crashed on this line: listview.Items.Add(ioFileInfo.ToString) So maybe the file name it got stuck on is to long or something, I dont know, I just know its not a bug in any of the apps, its the file thats causing the problem, gotta hate download files off limewire when theres idiots who name them with names that are so god damn long XD. I dont think I know enough at this time to even make the file explorer, I mean I know nothing about how to make the design look decent which is a must for me, I know only how to use the basic tools, nothing like im seeing used a lot like panes, I dont know anything about how to use graphics, and the types that exist... so I think I will just work my way up to this, and do other things. |
|
|
|
|
|
#16 |
|
Expert Programmer
|
Thats why the windows filesystem code should be abstracted from the GUI (explorer.exe) in my opinion. As it stands, ntfs is an ancient bloaty b*stard laden down with unecessary crap and metadata hacks, like drm and reparse points, when all that should be either implemented at the kernel or the file manager level and when something goes wrong it screws over all programs that use the windows API. What ever happened to that database filesystem we were promised for Longhorn?
Just out of interest, try seeing what Knoppix makes of the problem directory. |
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 126
Rep Power: 4
![]() |
Knoppix? Isnt that linux on a cd or something?
|
|
|
|
|
|
#18 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#19 |
|
Hobbyist Programmer
Join Date: Apr 2005
Posts: 126
Rep Power: 4
![]() |
Hmm cool, I already have linux installed on this computer, but would that let me access the windows drive? Fedora core doesnt...
|
|
|
|
|
|
#20 | |
|
Expert Programmer
|
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|