I've written a macro to open a list-file after I compile a file.
It looks like VS locks the file because I can't recompile the file while the listfile is still opened in VS.
I open the file using "edit_file" as shown below.
I also tried "load_files", but both without success.
If I open the file with "File->Open" there is no problem.
System setting "File locking" is off.
Macro:
_command void FListFileOpen(_str sInFileName='b:\*.lst') name_info(',')
{
// Find first file
_str sFileName = file_match(sInFileName,1);
// Loop to open all .lst files
for (; ; ) {
if (sFileName=='' ) break;
// Open list file in separate buffer
edit_file(sFileName' -L');
// Be sure to pass filename with correct path.
// Result filename is built with path of given file name.
sFileName= file_match(sInFileName,0); // find next.
}
}
Any help would be appreciated.
John Willemsen