PRB: LINK Fatal Error LNK1104 Cannot Open FileLast reviewed: July 15, 1997Article ID: Q166470 |
The information in this article applies to:
SYMPTOMSWhen compiling an ActiveX component with binary compatibility set to the same file the compile is attempting to overwrite, the following error occurs:
"LINK fatal error LNK1104 cannot open file" RESOLUTIONTo work around this problem, copy the ActiveX executable or DLL to a separate directory. Set binary compatibility to the copied file, and compile to the original directory. This procedure is described in Microsoft Visual Basic Books Online.
STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONWhile this behavior is not always encountered when compiling, you should follow the procedures in the RESOLUTION section above in all projects where you set binary compatibility.
Steps to Reproduce Behavior
"Microsoft Visual Basic: Unexpected error occurred in code generator or linker. -View error messages?"If you click on the "Yes" button, you will get the following message:
"LINK fatal error LNK1104 cannot open file"To fix this problem:
REFERENCESMicrosoft Visual Basic Books Online, Component Tools Guide, Using Binary Version Compatibility. Keywords : vb5all kbprb Technology : kbole Version : 5.0 Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |