
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)