473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CDlgEx bugs in Vista

I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save, Print)
and those less commonly called (e.g., the system's Find All Files Dialog).
Trouble is the Find folder dialog no longer functions under Windows Vista.
You get a window full of foreign characters.
Is there a better version or update that works with Vista?

Feb 28 '07 #1
5 3089
will_456 wrote:
I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save, Print)
and those less commonly called (e.g., the system's Find All Files Dialog).
Trouble is the Find folder dialog no longer functions under Windows Vista.
You get a window full of foreign characters.
Is there a better version or update that works with Vista?
Can you try padding the DialogPrompt property to 255 characters with
null characters?

Prompt = Prompt & String(255 - Len(Prompt), vbNullChar)

I have seen this dialog "break" on all versions of windows when the
prompt is shorter than that.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Feb 28 '07 #2

"Dean Earley" <de*********@icode.co.ukwrote in message
news:45***********************@news.zen.co.uk...
will_456 wrote:
>I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save,
Print) and those less commonly called (e.g., the system's Find All Files
Dialog).
Trouble is the Find folder dialog no longer functions under Windows
Vista. You get a window full of foreign characters.
Is there a better version or update that works with Vista?

Can you try padding the DialogPrompt property to 255 characters with null
characters?

Prompt = Prompt & String(255 - Len(Prompt), vbNullChar)

I have seen this dialog "break" on all versions of windows when the prompt
is shorter than that.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
I tried this but it still comes up with a scramble.
Could someone please copy the code from this page into a blank project and
run it. I can't get it to work with Windows Vist at all.

http://www.freevbcode.com/ShowCode.Asp?ID=631
Mar 1 '07 #3
That demo works perfectly on Vista. the Find Files button opens a window
that says "to begin, type in the search box".

--
Randy Birch
MS MVP, Visual Basic
http://vbnet.mvps.org/
"will_456" <wi;ll****@bigpond.comwrote in message
news:Qf*****************@news-server.bigpond.net.au...

"Dean Earley" <de*********@icode.co.ukwrote in message
news:45***********************@news.zen.co.uk...
will_456 wrote:
>I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save,
Print) and those less commonly called (e.g., the system's Find All Files
Dialog).
Trouble is the Find folder dialog no longer functions under Windows
Vista. You get a window full of foreign characters.
Is there a better version or update that works with Vista?

Can you try padding the DialogPrompt property to 255 characters with null
characters?

Prompt = Prompt & String(255 - Len(Prompt), vbNullChar)

I have seen this dialog "break" on all versions of windows when the prompt
is shorter than that.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
I tried this but it still comes up with a scramble.
Could someone please copy the code from this page into a blank project and
run it. I can't get it to work with Windows Vist at all.

http://www.freevbcode.com/ShowCode.Asp?ID=631
Mar 2 '07 #4
Sorry it's the Browse for folder dialog not Find Files ie. Public Function
ShowFolder
"Randy Birch" <rg************@mvps.orgwrote in message
news:45**********************@news.astraweb.com...
That demo works perfectly on Vista. the Find Files button opens a window
that says "to begin, type in the search box".

--
Randy Birch
MS MVP, Visual Basic
http://vbnet.mvps.org/
"will_456" <wi;ll****@bigpond.comwrote in message
news:Qf*****************@news-server.bigpond.net.au...

"Dean Earley" <de*********@icode.co.ukwrote in message
news:45***********************@news.zen.co.uk...
>will_456 wrote:
>>I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save,
Print) and those less commonly called (e.g., the system's Find All Files
Dialog).
Trouble is the Find folder dialog no longer functions under Windows
Vista. You get a window full of foreign characters.
Is there a better version or update that works with Vista?

Can you try padding the DialogPrompt property to 255 characters with null
characters?

Prompt = Prompt & String(255 - Len(Prompt), vbNullChar)

I have seen this dialog "break" on all versions of windows when the
prompt
is shorter than that.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems

I tried this but it still comes up with a scramble.
Could someone please copy the code from this page into a blank project and
run it. I can't get it to work with Windows Vist at all.

http://www.freevbcode.com/ShowCode.Asp?ID=631


Mar 2 '07 #5
The demo has poor implementation of the common control APIs.

For the browse code, delete the line in ShowFolders:

bi.pidlRoot = SHSimpleIDListFromPath(mInitDir)

.... and try now. And BTW, the enum constant for Folder_INCLUDEFILES should
be &H4000, not &H4001. And the .uiflags Or test in ShowFolders should also
be tweaked to read &H4000 rather than &4001.

Since the demo has problems (the browse and other calls on that demo that
fail on vista) you should review
http://vbnet.mvps.org/code/browse/browseadv.htm to see how to properly
implement code to restrict the scope of the browse dialog.

--
Randy Birch
MS MVP, Visual Basic
http://vbnet.mvps.org/
"will_456" <wi;ll****@bigpond.comwrote in message
news:F5*****************@news-server.bigpond.net.au...
Sorry it's the Browse for folder dialog not Find Files ie. Public Function
ShowFolder
"Randy Birch" <rg************@mvps.orgwrote in message
news:45**********************@news.astraweb.com...
That demo works perfectly on Vista. the Find Files button opens a window
that says "to begin, type in the search box".

--
Randy Birch
MS MVP, Visual Basic
http://vbnet.mvps.org/
"will_456" <wi;ll****@bigpond.comwrote in message
news:Qf*****************@news-server.bigpond.net.au...

"Dean Earley" <de*********@icode.co.ukwrote in message
news:45***********************@news.zen.co.uk...
>will_456 wrote:
>>I have been using the CDlgEx class in my programs for many years.
http://www.freevbcode.com/ShowCode.Asp?ID=631

This includes functions for displaying most available Windows dialogs,
including those commonly called from VB (e.g., File Open, File Save,
Print) and those less commonly called (e.g., the system's Find All Files
Dialog).
Trouble is the Find folder dialog no longer functions under Windows
Vista. You get a window full of foreign characters.
Is there a better version or update that works with Vista?

Can you try padding the DialogPrompt property to 255 characters with null
characters?

Prompt = Prompt & String(255 - Len(Prompt), vbNullChar)

I have seen this dialog "break" on all versions of windows when the
prompt
is shorter than that.

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems

I tried this but it still comes up with a scramble.
Could someone please copy the code from this page into a blank project and
run it. I can't get it to work with Windows Vist at all.

http://www.freevbcode.com/ShowCode.Asp?ID=631


Mar 3 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: theintrepidfox | last post by:
Dear Group I've installed MSSQL 2005 STD on Vista and now can't attach my databases. I've installed SQL SP2 and the SQL Vista Beta Update. The error I'm getting is: Unable to open the...
8
by: Darwiniv | last post by:
1. Does anyone run ASAPI and mysql succesfully on Vista /IIS7? 2. Does anyone run CGI and display all SESSION errors on Vista /IIS7? php ASAPI doesn't works with MYSQL. And CGI doesn't show...
4
by: Ismo Salonen | last post by:
I've got code that works when started normally (explorer, command whatever) but fails when started from VS2003. It crashes in different place when started with debugging (F5) and other place when...
2
by: Fuzzyman | last post by:
A very odd error with Python 2.5 (both 2.5.1 and 2.5.2 from the official msi installers and running on Vista under Parallels on the Mac). 'import site' fails due to a string in sys.path that...
60
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
On May 3, 8:09 am, apati...@gmail.com wrote: A programmer that uses Vista? :O Vista is a hog of an operating system. Downgrade to Windows XP or get yourself a Linux distro.
4
by: =?Utf-8?B?ai0wMjY=?= | last post by:
i am using vista home premium on a AMD DUAL CORE +5000 64live and "BULLGUARD INTERNET SECURITY" came with my software package and i have found that it is not compatible with VISTA and the update...
2
by: =?Utf-8?B?TWlrZSBNaWtl?= | last post by:
Multiple problems I believe are related. First SqlDatasource in designer "Object reference not set to an instance of an object." I believe problems is caused by unable to read and bind the...
29
by: process | last post by:
i just downloaded 2.6 and when running the gui nothing happens. anyone else with the same problem?
1
by: Prats | last post by:
I have an application developed in C++/CLI using dot NET 3.5 I tested on windows XP, Windows Vista Basic and Vista Home premium It does not run on vista Home Premium. The application installed...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.