平台:windows xp sp3
用 vb 6 创建了 ActiveX6 的工程,保存后关闭 vb6。发现工程文件只剩下 ActiveX6.vbw。后来发现 vb6 的安装目录 Microsoft Visual Studio\VB98 的 c2.exe 也被删除了。
请问这是什么回事呢?

解决方案 »

  1.   

    那是你未将新建工程于相关文件单独保存在一指定路径下,你只保存于Microsoft Visual Studio\VB98目录内,再遇到名称相同,那就发生悲剧了.
      

  2.   

    没有保存在Microsoft Visual Studio\VB98目录, ActiveX6 保存在桌面啊。
      

  3.   

    ActiveX6工程是EXE?DLL?控件?文档DLL?文档EXE?
      

  4.   

    ActiveX6工程是EXE。谢谢回复。
      

  5.   

    诡异的事情续:我分析可能的原因是电脑上安装了 vs6.0 ,2003, 2005, 2008 和 2010 这五个版本。是不是有什么冲突啊。我现在用 vs 2008 建一个最简单的 vb WindowsApplication 工程,编译出现如下错误:------ Build started: Project: WindowsApplication1, Configuration: Debug Any CPU ------
    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(64,7): error MSB4127: The "GetWinFXPath" task could not be instantiated from the assembly "PresentationBuildTasks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'Microsoft.Build.Tasks.Windows.GetWinFXPath' to type 'Microsoft.Build.Framework.ITask'.
    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.WinFX.targets(64,7): error MSB4060: The "GetWinFXPath" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
    Done building project "WindowsApplication1.vbproj" -- FAILED.
    ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
      

  6.   


    我的VB6与VB.NET2008共存,从未出现过LZ的诡异现象.
      

  7.   

    可以是因为我卸载了 vs 2010 的原因。这个问题在我重新安装 vs 2010 后得到解决。
      

  8.   

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    未能正确加载“Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”包。此问题可能是由配置更改或安装另一个扩展导致的。可以在命令行中使用 /log 参数来运行应用程序,然后检查文件“C:\Documents and Settings\hzpfly\Application Data\Microsoft\VisualStudio\10.0\ActivityLog.xml”,获取详细信息。是否继续显示此错误消息?
    ---------------------------
    是(Y)   否(N)   
    ---------------------------
    卸载掉所有的vs 版本,只安装 vs 2010. 出现上述错误。