WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

AskDirectory Flags Not Working


Question:

I am having a problem getting the edit field to show up in the dialog box when using the AskDirectory command.

here is the line of code I am using:

dirName = AskDirectory("Choose a directory to put downloaded files","h:\","",strCat(dirName," does not exist!",@CRLF,@CRLF,"Create this directory now?"),1|2)
...but Winbatch just ignores the flags.

The WIL Help file, it states:

NOTE: The edit field is supported in Windows 98, or higher, in Windows NT 2000 or higher, or in earlier versions of Windows that have Internet Explorer 4.0 installed. In other versions of Windows, this flag is ignored.

I am using Windows NT 4.0 (Service pack 6), with Internet Explorer 5.5 installed. I am also using Winbatch+Compiler 2003G.

Answer:

Its a Windows common controls problem.

It appears to me that the MSIE 4.0 install updated the common controls to some newer version that supported the flags. But that the MSIE 5.5 install probably assumed you had the latest version of the common controls and did not bother to update them.

Or at least somehow you are running with an older version of the windows common controls.

In any case, someplace at microsoft you can download the latest set of common controls and fly with that, Hmmm....

I *think* this might fix the problem...

http://www.microsoft.com/downloads/details.aspx?FamilyID=6f94d31a-d1e0-4658-a566-93af0d8d4a1e&DisplayLang=en

User reply:

No luck...it just told me: 'Your computer already has the latest version of Windows common controls.'

Answer:

What is the version of your SHELL32.DLL? It needs to be at least 4.71 to support the edit box.

User reply:

That may be the problem. My shell32.dll is version 4.00 Although, I can't guarantee that the people I give the program to will have the newest version. So in short, I think I will be better off just writing around not needing the edit box. Thanks as always,
Article ID:   W15948
File Created: 2004:03:30:15:41:56
Last Updated: 2004:03:30:15:41:56