FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Support FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Support FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

Can Application.FileDialog replace a call to GetSaveFileName (Win API)

Page d'accueil ' Communauté ' Automation et VBA ' Can Application.FileDialog replace a call to GetSaveFileName (Win API)

  • Ce sujet contient 2 réponses, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 10 années et 8 mois.
Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #35179
    Anonyme
    Inactif

    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.

    #35181
    Anonyme
    Inactif

    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.

    #35180
    Bernhard Kantz
    Participant

    The 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

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.