重启,删掉l.exe,再重新编译

解决方案 »

  1.   

    好像是你的CVTRES.EXE文件坏了.~~
    哪个文件在 \Microsoft Visual Studio .NET 2003\Vc7\bin 目录下~~
      

  2.   

    sounds like VS.NET is not properly installed, consider to reinstall  .NET Framework
      

  3.   

    FIX: Visual Studio 97 SP3 Installs Incorrect Cvtres.exePSS ID Number: Q187280Article Last Modified on 02-27-2002
    --------------------------------------------------------------------------------
    The information in this article applies to: Microsoft Visual Studio 97sp3 
    Microsoft Visual Studio, Professional Edition 6.0, 6.0 SP3 
    Microsoft Visual C++, 32-bit Professional Edition 5.0 
    Microsoft Visual Basic Enterprise Edition for Windows 5.0--------------------------------------------------------------------------------
    Summary
    Cvtres1.exe is a self-extracting file that contains Cvtres.exe version 5.00.1736.1. Link.exe uses Cvtres.exe to convert resource files into the Common Object File Format (COFF). An incorrect version of Cvtres.exe causes some localized resources to become unavailable to the application. As a result, applications that determine which localized resources to use at run time do not obtain the correct resources. The Visual Studio 97 Service Pack 3 (SP3), which installs an incorrect version of Cvtres.exe (5.00.1668.1), causes this problem. To resolve this problem, you need to replace Cvtres.exe version 5.00.1668.1 with an updated Cvtres.exe, version 5.00.1736.1 or later. NOTE: This problem can affect other resources as well, such as dialog boxes. Also, if your application uses message resources, the following error message might appear: Error 1815: The specified resource language ID cannot be found in the image file. 
    Status
    Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: 
    Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, WhyQ194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed More Information
    After Cvtres.exe has been replaced, any application with localized resource problems needs to be rebuilt. Open up the project in Developer Studio. On the Build menu, click Rebuild All. The following files are available for download from the Microsoft Download Center:
    Cvtres1.exe
    Release Date: Jun-10-1998For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base: 
    Q119591 How to Obtain Microsoft Support Files from Online Services 
    Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file. 
    Cvtres1.exe contains the following files: 
    Cvtres.exe 
    Readme.txt 
    Steps to Reproduce Behavior
    Install Visual Studio 97 on Windows NT 4.0. 
    Install Visual Studio 97 Service Pack 3. 
    Create a Visual C++ Windows Console Application that uses a String Table that has one entry with identifier IDS_TEST and ID number 1. 
    In the ResourceView, right-click the string table and then click Insert Copy from the shortcut menu. 
    In the Language list, select English (Ireland). 
    Open the localized string table and change IDS_TEST text to different string that will allow you to identify the language. 
    Repeat steps 4 through 6 for the following languages: English (U.K.), English (Canada), and Swedish. 
    Insert the following code into your project:       #include <windows.h>
          #include <stdio.h>
          #include "resource.h"      void main()
          {
             TCHAR pszTest[256];
             INT i = 0;
             HMODULE hMod = GetModuleHandle(NULL);
             LANGID langIds[5] = { 0x409,0x1809,0x809,0x1009,0x41d };
             TCHAR pszLangIds[5][25] = { "English","Ireland",
                "British","Canada","Swedish"};         for(i; i<=4; i++)
             {
                // SetThreadLocale function is not supported on Windows 95.
                SetThreadLocale(langIds[i]);
                LoadString(hMod, IDS_TEST, pszTest, sizeof(pszTest));
                printf("%s\t(LangId = 0x%x)\t=\t%s\n", pszLangIds[i],
                   langIds[i], pszTest);
             }
          } Build the project and execute it. Some strings will not be localized correctly. 
    Copy the updated Cvtres.exe into the VC\BIN directory. 
    On the Build menu, click Rebuild All. 
    All localized strings should now appear as expected. 
    NOTE: This problem can affect other resources as well, such as dialog boxes. References
    You can find Language Identifiers in the Microsoft Developer Network (MSDN) under: SDK Documentation\Platform SDK\Window Base Services\International Features\Locale Identifiers\Language Identifiers and Locales Additional query words: VS97bug kbSPack3 Keywords: kbfile kbpatch kbservicepack kbLinker kbVS97sp3 kbVS600sp2 kbVS600SP1 kbVS600sp3fix kbGrpDSTools 
    Issue Type: kbbug 
    Technology: kbVCsearch kbVSsearch kbVBSearch kbAudDeveloper kbZNotKeyword6 kbZNotKeyword2 kbVB500Search kbVB500 kbVC500 kbVC32bitSearch kbVS97SP3 kbVS600SP3 kbVS600 kbVS97Search kbVS600Search kbVC500Search
      

  4.   

    重装.NET Framework,
    不行的话,把VS.net重装
      

  5.   

    删除项目里的bin子目录,重新编译。
      

  6.   

    重装了系统,重装了.net!
    结帖!