I need to be able to save files into an absolute location whose full path is more than MAX_PATH characters. My application is not (and can not easily be) in Unicode. Could I use a relative path name of fewer than MAX_PATH characters and if so, what is the best way to set the desired current directory. My appication is currently using CFile for file handling. Please provide a few lines of code by way of an example if not very straightforward.
You'll still run into problems because CFile::Open() calls a function named AfxFullPath() that expands the file name to the full path with the limitation of _MAX_PATH. Look at FILECORE.CPP in the MFC\SRC
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes. I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.
Dialogs (2) modeless dialog and a worker thread. Handling data shared between threads. Recursive functions.
Continuing from the tenth article about sudoku.
Last article we worked with a modal dialog to help maintain informat…