我将该项目目录下所有文件内搜索到的原名字串全部替换为新的,包括
文件名,最后全编译确报出几个lib冲突的警告,运行新链接的程序开始正常,
最后确报告指针使用出错。
  我是VC的初学者,请大虾能告诉我,这种情况该怎么办?

解决方案 »

  1.   

    不能那样改。这里有一个VC工程改名器:
    http://www.daansystems.com/freestuff/WSRename.zip
    ------------------------------------
       Visual Studio Project Renamer
     
              For Win9x/NT/2k           By Niek Albers 
           [email protected]        (C)2001 DaanSystemsHomepage: http://www.daansystems.com
    ------------------------------------Use with care and on your own risk! 
    Make backups before you use this program.
    Do a 'rebuild all' on your renamed project.Usage: vsrename <oldname> <newname> <dir>Where:oldname : The old name of your project (typically the xxx from xxx.dsw)
    newname : The new name for your project
    dir : The directory tree that holds the project.The program will replace all occurences of oldname to newname in all
    files and rename all filenames that have the old name in it.
    It will walk subdirectories.--- History
    30.Jun.2001 v0.4bugfixes:+ Better handling of binary files. They should be alright after
      renaming the project.15.Jun.2001 v0.3bugfixes:+ Better renaming of projects with the same name in it,
      so you can rename a project from 'myproject' to 'supermyproject'.
      It should go ok.-----------
    14.Jun.2001 v0.2improvements:+ Added renaming of main project directory.
      

  2.   

    nbb01:
      谢谢你提供的信息,但我使用后,跟我自己手工修改的效果一样,编译
    时都报如下警告:
    LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
    LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
    LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
      如果我将项目配置中加入去除mfc42.lib,mfc42.lib,mfc42.lib后,
    虽然编译完全通过,但运行过程中会报指针使用错(原项目无错):
      dbgheap.c,lines:1051 ,pHead->nBlockUse==nnBlockUse
      请高手继续指教,多谢了!!!
      

  3.   

    另外,我发现修改后的工程项目的配置变了,似乎VC6编译环境,
    在引导工程时自动作了某些修改。
      上面的警告信息我考错了,实际是:
    LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
    LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
    LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
      

  4.   

    编译环境在引导新工程时,工程配置被修改的有:
    原工程是Release版本,新工程变成了调试版本,原中国语言变成
    了英语语言了。
      

  5.   

    这个问题很好解决
    你只要把*.dsw and .dsp中相应项目名称改掉即可,其他的都不用修改