473,659 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ 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 3093
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*********@ic ode.co.uk)
i-Catcher Development Team

iCode Systems
Feb 28 '07 #2

"Dean Earley" <de*********@ic ode.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*********@ic ode.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****@bigp ond.comwrote in message
news:Qf******** *********@news-server.bigpond. net.au...

"Dean Earley" <de*********@ic ode.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*********@ic ode.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.c om...
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****@bigp ond.comwrote in message
news:Qf******** *********@news-server.bigpond. net.au...

"Dean Earley" <de*********@ic ode.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*********@ic ode.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 = SHSimpleIDListF romPath(mInitDi r)

.... and try now. And BTW, the enum constant for Folder_INCLUDEF ILES 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****@bigp ond.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.c om...
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****@bigp ond.comwrote in message
news:Qf******** *********@news-server.bigpond. net.au...

"Dean Earley" <de*********@ic ode.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*********@ic ode.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
4491
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 physical file <Path to MDF>. Operating system error 5: '''5(Error not found)'''. (Microsoft SQL Server, Error: 5120)
8
7482
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 any SESSION error message. PHP had so much bugs on windows vista. I using php-5.2.1-Win32
4
1520
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 started without debugging ( CTRL+F5). The same code works correctly on W2K/W2K3/XP. All modules are C++ code. The Visual Studio 2003 must be currently used due to 3rd party libraries. It has the SP1 installed.
2
1913
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 contains a huge number of null bytes. The error is actually in ntpath - I adjusted it to print the paths it is working with and a string on encountering the bad path.
60
4077
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
1846
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 to service pack 1 in vista ,once sp1 is downloaded and additional updates with bullguard my vista becomes unresponsive it will hang and freeze the whole system becomes in a way "stupid". even system restore does not solve the issue programs...
2
1632
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 connectionString settings in the web.config file. Second, when trying to run the ASP.Net web site administration tool recieve the following error: An error was encountered. Please return to the previous page and try again. The following message...
29
1970
by: process | last post by:
i just downloaded 2.6 and when running the gui nothing happens. anyone else with the same problem?
1
3468
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 successfully, dot Net 3.5 also installed, but when I run the application, it says application failed to start. Are there any knows bugs woth 3.5 and Vista Premium. TIA
0
8335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7356
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6179
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.