The information in this article applies to:
SYMPTOMSThe comment pragma allows the user to insert strings into an executable. If a comma is used in the comment string, as follows:
then the linker generates the following warning:
where the "extra arguments" refers to the text after the "," in the comment string. CAUSEThe comment pragma is translated by the compiler into the /comment linker option. The linker interprets the comma as a separator between arguments, and ignores the "second" argument. RESOLUTIONAdd a space or some other character in place of the comma, and then edit the executable and replace the space with a comma. To do this, open the executable file in Developer Studio using the binary format. Select File/Open, choose Binary under the "Open As" combo box, and open the .exe file. Locate the string, and edit the executable directly to add a comma where needed. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article. MORE INFORMATIONSample Code
REFERENCESVisual C++ version 5.0 Online Documentation, #pragma comment: mk:@ivt:vccore/F39/D3B/S4C36D.HTM Additional query words:
Keywords : kbLangC kbVC kbVC200bug kbVC210bug kbVC220bug kbVC400bug kbVC410bug kbVC500bug kbVC600fix LinkIss |
Last Reviewed: July 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |