Commond Dialog File in Windows XP

  • Thread starter Thread starter Amin Ch
  • Start date Start date
A

Amin Ch

I have a module to browse file using comdlg32.dll. The
module works in Windows 98, but doesn't work in Windows XP.
I don't know the problem caused by Office version or
Windows version. If you have any solution for this matter,
please let me know. I would appreciate very much if your
response can also be passed directly to my email.

Thanks in advance.
 
Amin said:
I have a module to browse file using comdlg32.dll. The
module works in Windows 98, but doesn't work in Windows XP.
I don't know the problem caused by Office version or
Windows version. If you have any solution for this matter,
please let me know. I would appreciate very much if your
response can also be passed directly to my email.


Actually, the problem is probably the comdlg version. This
OCX is the very definition of DLL Hell. Since I have never
successfully deployed this thing at a client's site, I
stongly recommend against even trying to use it.

A far more reliable way to do this kind of thing is to use
the Windows File Open/Save API. Here's an article that
demonstrates how to do it:

http://www.mvps.org/access/api/api0001.htm
 
Thank you for your reply.

Actually the code I have in my module is similar to the
article in http://www.mvps.org/access/api/api0001.htm
I get the code from Access 95 How To book.
The code runs well in Windows 98 but doesn't work in
Windows XP environment. Is there any way to browse file in
Windows 2000 atau Windows XP using Access 97 or Access
2000 ?

Thanks in advance for any response.
 
Use the code from the web site: it'll work with all operating systems.

There were some subtle changes required for NT and up that may not have been
included in the version in the Access 95 book.
 
Thank you for the reply.
I have checked my code and compared with the code from the
web site. I found the following missing code:

'New for NT 4.0
.strCustomFilter = String(255, 0)
.nMaxCustFilter = 255

I will try the code from the web site and will report the
final result.
Anyway, thank you very much.
 
Back
Top