File Open/Save dialog in Access 2000 running on Win98, Win2K and WinXP 
Author Message
 File Open/Save dialog in Access 2000 running on Win98, Win2K and WinXP

Hi,

I have an Access 2000 application that uses the
GetOpenFileName dialog API. When running on a Win98
machine, the application functions correctly, and the
dialog box is displayed. When running on Win2K or WinXP,
the dialog box is not displayed at all, and no errors
occur.

From what research I've done, I know that the OPENFILENAME
type definition needs to be modified to include three new
fields added in Win2K/WinXP, and that the StructSize field
must be set differently depending on which opperating
system the application is current running on. I've made
these two changes, but haven't had any luck getting the
dialog box to be displayed.

Can anyone suggest where I might be going wrong, or what
I've missed out?

Many thanks in advance.



Mon, 03 Oct 2005 20:35:17 GMT  
 File Open/Save dialog in Access 2000 running on Win98, Win2K and WinXP
The API call in this link works fine with Win9x, 2000, and XP:
    http://www.mvps.org/access/api/api0001.htm

--
Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to the newsgroup. (Email address has spurious "_SpamTrap")


Quote:
> I have an Access 2000 application that uses the
> GetOpenFileName dialog API. When running on a Win98
> machine, the application functions correctly, and the
> dialog box is displayed. When running on Win2K or WinXP,
> the dialog box is not displayed at all, and no errors
> occur.

> From what research I've done, I know that the OPENFILENAME
> type definition needs to be modified to include three new
> fields added in Win2K/WinXP, and that the StructSize field
> must be set differently depending on which opperating
> system the application is current running on. I've made
> these two changes, but haven't had any luck getting the
> dialog box to be displayed.

> Can anyone suggest where I might be going wrong, or what
> I've missed out?

> Many thanks in advance.



Mon, 03 Oct 2005 20:58:54 GMT  
 File Open/Save dialog in Access 2000 running on Win98, Win2K and WinXP
Thanks Allen, I had a minor but significant difference in
my code.

Quote:
>-----Original Message-----
>The API call in this link works fine with Win9x, 2000, and
XP:
>    http://www.mvps.org/access/api/api0001.htm

>--
>Allen Browne - Microsoft MVP.  Perth, Western Australia.
>Tips for Access users - http://allenbrowne.com/tips.html
>Reply to the newsgroup. (Email address has spurious
"_SpamTrap")



>> I have an Access 2000 application that uses the
>> GetOpenFileName dialog API. When running on a Win98
>> machine, the application functions correctly, and the
>> dialog box is displayed. When running on Win2K or WinXP,
>> the dialog box is not displayed at all, and no errors
>> occur.

>> From what research I've done, I know that the
OPENFILENAME
>> type definition needs to be modified to include three
new
>> fields added in Win2K/WinXP, and that the StructSize
field
>> must be set differently depending on which opperating
>> system the application is current running on. I've made
>> these two changes, but haven't had any luck getting the
>> dialog box to be displayed.

>> Can anyone suggest where I might be going wrong, or what
>> I've missed out?

>> Many thanks in advance.

>.



Mon, 03 Oct 2005 23:52:01 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. file open common dialog in access 2000

2. Porting Excel 2000 Toolbars in Win98 to Excel 2002 in WinXP

3. Access XP - Reports run under Win2K, not under Win98

4. Code runs in Word97/Win98, gags in Word2K/Win2K-NT

5. Program runs on Win98 but not on Win2K

6. Can't Launch Office 2000 shortcuts using RUN method in Win2k

7. Access 2000: Create and save add-in/mda and mde files

8. Save an ADO Recordset to file in Access 2000 mdb format

9. File Save/Open browse dialog

10. File Open/Save browse dialog

11. File Open/Save Dialog

12. How to call Open File and Save As dialog box API from VB

 

 
Powered by phpBB® Forum Software