Beginner [Q] Using Canned File Open/Save dialog 
Author Message
 Beginner [Q] Using Canned File Open/Save dialog

good day, i have a small win app that will open and save a two
dimensional int array to file, hopefully. What I would like to know is,
when using the canned  open/save dialog:
how do i pass the filename of the selected file to my write to file and
read from file functions?
should my write to / read from file functions be part of the window or
the app?

any help is appreciated
thanks
Cameron



Fri, 14 Jun 2002 03:00:00 GMT  
 Beginner [Q] Using Canned File Open/Save dialog
good day, i have a small win app that will open and save a two
dimensional int array to file, hopefully. What I would like to know is,
when using the canned  open/save dialog:
how do i pass the filename of the selected file to my write to file and
read from file functions?
should my write to / read from file functions be part of the window or
the app?

any help is appreciated
thanks
Cameron



Fri, 14 Jun 2002 03:00:00 GMT  
 Beginner [Q] Using Canned File Open/Save dialog
CFileDialog dlg(...);
if(dlg.DoModal() != IDOK)
    {
     // handle error
     return;
    }
CString filename = dlg.GetPathName();
HANDLE file = CreateFile(filename, ...);
while(...)
    {
     WriteFile(file, ...);
    }

                        joe

On Mon, 27 Dec 1999 06:48:15 GMT, Cameron Fraser

Quote:

>good day, i have a small win app that will open and save a two
>dimensional int array to file, hopefully. What I would like to know is,
>when using the canned  open/save dialog:
>how do i pass the filename of the selected file to my write to file and
>read from file functions?
>should my write to / read from file functions be part of the window or
>the app?

>any help is appreciated
>thanks
>Cameron

Joseph M. Newcomer [MVP]

Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm
Author of "Win32 Programming" (with Brent Rector, Addison-Wesley, 1997)
Author of "Developing Windows NT Device Drivers" (with Ed Dekker, AWL, 1999)


Fri, 14 Jun 2002 03:00:00 GMT  
 Beginner [Q] Using Canned File Open/Save dialog
thanks for the help, a little terse, but thanks...:o)
Cameron
Quote:

> CFileDialog dlg(...);
> if(dlg.DoModal() != IDOK)
>     {
>      // handle error
>      return;
>     }
> CString filename = dlg.GetPathName();
> HANDLE file = CreateFile(filename, ...);
> while(...)
>     {
>      WriteFile(file, ...);
>     }

>                         joe

> On Mon, 27 Dec 1999 06:48:15 GMT, Cameron Fraser

> >good day, i have a small win app that will open and save a two
> >dimensional int array to file, hopefully. What I would like to know is,
> >when using the canned  open/save dialog:
> >how do i pass the filename of the selected file to my write to file and
> >read from file functions?
> >should my write to / read from file functions be part of the window or
> >the app?

> >any help is appreciated
> >thanks
> >Cameron

> Joseph M. Newcomer [MVP]

> Web: http://www3.pgh.net/~newcomer
> MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm
> Author of "Win32 Programming" (with Brent Rector, Addison-Wesley, 1997)
> Author of "Developing Windows NT Device Drivers" (with Ed Dekker, AWL, 1999)



Sat, 15 Jun 2002 03:00:00 GMT  
 Beginner [Q] Using Canned File Open/Save dialog
What we call in the trade "An Exercise for the Reader..."
                        joe

On Tue, 28 Dec 1999 05:52:00 GMT, Cameron Fraser

Quote:

>thanks for the help, a little terse, but thanks...:o)
>Cameron


>> CFileDialog dlg(...);
>> if(dlg.DoModal() != IDOK)
>>     {
>>      // handle error
>>      return;
>>     }
>> CString filename = dlg.GetPathName();
>> HANDLE file = CreateFile(filename, ...);
>> while(...)
>>     {
>>      WriteFile(file, ...);
>>     }

>>                         joe

>> On Mon, 27 Dec 1999 06:48:15 GMT, Cameron Fraser

>> >good day, i have a small win app that will open and save a two
>> >dimensional int array to file, hopefully. What I would like to know is,
>> >when using the canned  open/save dialog:
>> >how do i pass the filename of the selected file to my write to file and
>> >read from file functions?
>> >should my write to / read from file functions be part of the window or
>> >the app?

>> >any help is appreciated
>> >thanks
>> >Cameron

>> Joseph M. Newcomer [MVP]

>> Web: http://www3.pgh.net/~newcomer
>> MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm
>> Author of "Win32 Programming" (with Brent Rector, Addison-Wesley, 1997)
>> Author of "Developing Windows NT Device Drivers" (with Ed Dekker, AWL, 1999)

Joseph M. Newcomer [MVP]

Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm
Author of "Win32 Programming" (with Brent Rector, Addison-Wesley, 1997)
Author of "Developing Windows NT Device Drivers" (with Ed Dekker, AWL, 1999)


Sat, 15 Jun 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Change file index filter of the standard file open/save dialog

2. File dialog of Open/Save

3. File Open / Save As dialog overriding

4. Customized File Open/Save Dialog problem

5. Common Dialogs File Open, Save As

6. File dialog of Open/Save

7. File Extensions and Open and Save Dialogs

8. Multiple Filters in File Open/Save Dialog

9. File dialog of Open/Save

10. Using Open file dialog to find file

11. Basic Open File, Save/ Save as functions for dos word processor

12. Using the File Open box from a dialog

 

 
Powered by phpBB® Forum Software