-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Can Application.FileDialog replace a call to GetSaveFileName (Win API)
Home > Community > Automation and VBA > Can Application.FileDialog replace a call to GetSaveFileName (Win API)
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 10 Jahren, 2 Monaten von Anonym aktualisiert.
-
AutorBeiträge
-
August 29, 2014 um 3:46 pm Uhr #12860AnonymInaktiv
Hello,
I use the functions GetOpenFileName and GetSaveFileName from the Windows API, to get filename when opening files or saving files.
I need to adapt these calls of functions, to be compatible with the versions 32 bits and 64 bits of Windows and FlexPro9.
I find out how to use Application.FileDialog to replace GetOpenFileName.
But for GetSaveFileName, it seems that Application.FileDialog doesn’t provide this feature ?
Thanks in advance.
August 29, 2014 um 3:46 pm Uhr #8520AnonymInaktivHello,
I use the functions GetOpenFileName and GetSaveFileName from the Windows API, to get filename when opening files or saving files.
I need to adapt these calls of functions, to be compatible with the versions 32 bits and 64 bits of Windows and FlexPro9.
I find out how to use Application.FileDialog to replace GetOpenFileName.
But for GetSaveFileName, it seems that Application.FileDialog doesn’t provide this feature ?
Thanks in advance.
September 1, 2014 um 9:26 am Uhr #9365Bernhard KantzTeilnehmerThe FlexPro Application.FileDialog can only be used to select existing files (or folders), i.e. entering a non-existing filename results in an error message.
So it is recommended to use the GetOpenFileName / GetSaveFileName methods in general. If the code should be compatible with both 32 and 64 bit VBA one has to cope with the different signatures and data structures used. You may find some information on this VBA topic under http://www.jkp-ads.com/articles/apideclarations.asp
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.