 |
| Creating the Save dialog box to specify the drive, directory, and name of a file to save |
User rating: 8/10 (1 votes) | |
|
|
 |
 |
| Before you begin: |
 |

See also:
|
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 8/10 (1 votes) | |
| 5350 bytes Created: 2002-01-25 20:14:30 Modified: 2011-12-10 09:20:22 Visits in 7 days: 90 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
The OPENFILENAME structure length depends on the OS, and can be 76 or 88 bytes.
This is important, because invalid parameter creates an error. Note that this structure is used with GetOpenFileName and GetSaveFileName functions. There is substantial set of OFN flags to control the dialog behaviour.
To fill the OPENFILENAME structure -- as well as almost all other Comdlg structures used -- you need not just strings but pointers to strings. There is a class PChar in this examples, which creates such extended strings. In more simple cases the StrDup is quite enough to accomplish this task. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|