I used the backslach character to perform line continuation in the MSVC++ V6.0 IDE. After Auto-formating the text a number of extra spaces were added to the string literal. I'm trying to create an array to pass to the OPENFILENAME structure in order to present the user with a list of files to choose from. The extra spaces hork up the file list strings.
Here is how I'm defining my string literal array for the OPENFILENAME.lpstrFilter. This looks pretty much like it does in the MSVC++ IDE after formatting the code using the ALT-F8 key combo.
Is this a bug in the editor or my array definition syntax?
Here is how I'm defining my string literal array for the OPENFILENAME.lpstrFilter. This looks pretty much like it does in the MSVC++ IDE after formatting the code using the ALT-F8 key combo.
Code:
static SCHAR TxtFilters[] = " Text File (*.TXT)\0*.TXT\0 List File (*.LST)\0*.LST\0 OCR Reject(*.REJ)\0*.REJ\0 OCR Flags (*.FLG)\0*.FLG\0 OCR/ICR (*.VIK)\0*.VIK\0 All Files(*.*)\0*.*\0 \0\0";
Is this a bug in the editor or my array definition syntax?