Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetOpenFileName using struct.vcx
Message
 
À
09/03/2004 00:19:48
Tan Aik Jin
Aranea WebLab Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00884320
Message ID:
00884405
Vues:
13
I have examples with these API functions, but without using Struct.vcx class.

Certain complexity of these calls is created by requirement to use pointers to strings for members lpstrFilter, lpstrCustFilt, lpstrFile etc. Memory buffer should be allocated and the pointer to it should be passed to the structure as DWORD.

FoxPro code samples (members area):

Creating the Open dialog box to specify the drive, directory, and name of a file to open
http://www.news2news.com/vfp/?example=363&function=553

Creating the Save dialog box to specify the drive, directory, and name of a file to save
http://www.news2news.com/vfp/?example=265

* * *
The GetFileNameFromBrowse function does not require pointers to strings and for that reason is easier to use comparing to the GetOpenFileName.

Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
http://www.news2news.com/vfp/?example=365&function=556
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform