PB 5.10 PathRequester() does not show 'extensions'

Windows specific forum
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi mk-soft,

I've done it now.
But nothing changed.

Btw., it is Windows 7 Professional x64 german version with Service Pack 1 and all updates.

It is really strange that no one other have the same behaviour.
I'll go now to test it on an other PC with the sme configuration.

Bernd
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hm...

I can not reproduce it on an other PC. :cry:
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by Little John »

Hu, that's strange.

I cannot reproduce the problem here (PB 5.10 final on Windows XP x86),
regardless of whether I create the test folders on a FAT32 drive or on a NTFS drive,
and regardless of whether I compile the program in ASCII or in Unicode mode.
User avatar
skywalk
Addict
Addict
Posts: 3996
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by skywalk »

infratec wrote:How many peoble use such directory names?
Maybe only I.
But I use it to save my old software versions (for example).
Microsoft ways are always mystic :evil:
I agree, but don't manually manage your software :idea: Use Fossil instead.
All your files and data in 1 SQLite database and a simple cross platform command line and html gui for administration. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by Danilo »

infratec wrote:It looks like that something is not correct initialized.
:?:

Code: Select all

OleInitialize_(0)
PathRequester("","")
OleUninitialize_()

CoInitializeEx_(0,#COINIT_APARTMENTTHREADED)
PathRequester("","")
CoUninitialize_()
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi Danilo,

I can check it on monday, because the 'bug' happens on my office PC.

Bernd
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi Danilo,

both initializations don't work.
Still I can't see the .xxx part of the directories. :cry:

Bernd
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by Fred »

infratec wrote:Hi MachineCode,

I was to fast.

Your example works fully. Also PB is showing the .000

Than I did some additional tests:

If I use

Code: Select all

SHBrowseForFolder_(@dir.BROWSEINFO)
PathRequester("","")
The PB Requester shows it correct too.

If I comment out the SHBrowseForFolder_() PB shows not the .xxx stuff :!:

It looks like that something is not correct initialized.
After the first call to SHBrowseForFolder_() it is initialized and the PB Requester works Ok.

Bernd
We use #BIF_NEWDIALOGSTYLE | #BIF_EDITBOX as style, may be it makes a difference ?
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi Fred,

you are right, it depends on this flags:

Code: Select all

Define dir.BROWSEINFO

; fails
;dir\ulFlags = #BIF_NEWDIALOGSTYLE | #BIF_EDITBOX

; fails
;dir\ulFlags = #BIF_NEWDIALOGSTYLE

;works !!!
dir\ulFlags = #BIF_EDITBOX

SHBrowseForFolder_(@dir)
#BIF_NEWDIALOGSTYLE is :twisted:

From MS Dev-Center:
Note If COM is initialized through CoInitializeEx with the COINIT_MULTITHREADED flag set, SHBrowseForFolder fails if BIF_NEWDIALOGSTYLE is passed.
maybe that's the explanation.

Bernd
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by Fred »

We don't use this flag anywhere in PB source tree. The flag #BIF_NEWDIALOGSTYLE makes a big difference here on Windows 8, so I think we will have to keep it. It's also wierd than it occurs only on one PC, may be you have installed a program which install an explorer hook ?
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by Fred »

Any news on this ?
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi Fred,

I'll try it tomorrow on Win7 64.
Here at home on Win XP 32 no problems. (PB 5.20b7)

Bernd
infratec
Always Here
Always Here
Posts: 6871
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by infratec »

Hi Fred,

with PB 5.20b7 x86 on Win7 x64 it's still not working:

Image

Bernd
User avatar
bamsagla
User
User
Posts: 62
Joined: Sat Jan 30, 2010 10:10 am
Location: Laufen, Bavaria, Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by bamsagla »

Hi infratec,

you mentioned 'work pc'. Maybe there are some group policies activated, prohibiting the expected action? Could be some explorer, system, or even internet explorer policies...

Harry.
- Sherlock Holmes - "When you have eliminated the impossible, whatever remains, however improbable, must be the truth."
In my opinion, he must have been a programmer.
User avatar
mk-soft
Always Here
Always Here
Posts: 5398
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB 5.10 PathRequester() does not show 'extensions'

Post by mk-soft »

Version:
- PB v5.11
- PB v5.20 Beta 6,7

Testing on:
- Windows XP SP3 (X86)
- Windows 7 Pro SP1 (X86, X64)

Network-Folders direct and binding drives:
- Windows XP SP3
- Windows 7 Pro SP1
- Windows SBS2011
- NAS (Linux-base)

All folders Ok.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply