Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
Quote:
Originally Posted by
fafalone
That's an Explorer policy so I'm pretty sure it's not going to impact this project, since I'm not enumerating with IShellFolder or IShellItem.
That's exactly what I mean. The drive letters hidden via RegKey can be seen in your UC. There are good reasons why you hide drive letters from a user and therefore my suggestion is to allow these drive letters to be displayed in your UC using the ShowHiddenDrives property. The default would be to not allow these drive letters to be displayed in your UC.
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
Sorry misunderstood. Yeah I can add that.
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
Quote:
Originally Posted by
fafalone
Sorry misunderstood.
No problem. Maybe I just didn't explain it correctly. :)
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
Project Updated - Version 1.6
I've updated all versions and binaries for the project to v1.6, adding the feature to not show Explorer-hidden drives by default.
Download from GitHub
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
:thumb: I think you could also check whether the drive letter is hidden using IShellItem::GetAttributes with the mask SFGAO_HIDDEN.
Re: [VB6, twinBASIC] ucDriveCombo - A modern DriveList replacement
Probably but then I'd have a complicated dependency system, since it would have to require oleexp.tlb in VB6 and WinDevLib (or local interface defs) in twinBASIC, or much more complicated DispCallFunc calls that are impenetrable to all but the most advanced VB/tB programmers.
Once tB can export type libraries, I'll be able to make a single dependency system like that which covers both 32bit VB6 and 64bit twinBASIC (and 64bit VBA), and oleexp will go into bugfix-only deprecated status, but for now if it's a small project with only one or two easily avoided shell interfaces, makes more sense to do that when I'm writing for VB6 backwards compatibility.