如何通过Visual Studio外接程序将现有VC6项目添加到工作区中. [英] How to add an existing VC6 project in to a workspace from visual studio add-in.

查看:213
本文介绍了如何通过Visual Studio外接程序将现有VC6项目添加到工作区中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将现有的VC6项目从外接程序或VBS宏添加到工作区中.
我找不到任何在Developer Studio的Application对象中插入现有项目的函数.因此,我尝试使用Application的AddProject 方法添加一个新项目(与现有项目同名),然后覆盖使用我现有项目文件创建的项目文件.但这没有用(项目不会自动重新加载).
还有其他方法可以实现这一目标.请帮忙.

I want to add an existing VC6 project into a workspace from add-in or VBS macro.
I could not find any function to insert an existing project in Developer Studio''s Application object. So I tried to add a new project (with the same name of existing project) using Application''s AddProject method and then overwrite the project file created with my existing project file. But it did not work (Project is not reloading automatically).
Is there any other way to achieve this. Please help.

推荐答案

为什么需要外接程序或宏才能执行此操作?
在工作空间视图中,右键单击工作空间节点,然后选择将项目插入工作空间";浏览到项目文件并选择它.

如果自动化对象没有在某处公开插入项目",我会感到惊讶.

OT-Microsoft不再支持VC6,并且您无法购买新许可证.甚至在e-bay副本消失之前也不需要很长时间,并且对它的操作系统支持也将消失.为此构建一个插件根本没有未来.
Why would you need an add-in or macro to do this?
In the workspace view, right click on the workspace node, and choose "Insert project into Workspace"; browse to the project file and select it.

I would be surprised if the automation object did not expose "insert project" somewhere...

OT - Microsoft no longer supports VC6, and you can''t buy new licenses. It won''t be much longer before even the e-bay copies vanish, and OS support for it goes away. Building an add in for this has no future at all.


Hello Graham,
感谢您的重播.我的要求如下.
我必须创建一个自定义项目(Visual Studio的文件"->新建"->项目"选项卡中不可用)并添加到工作区中.因此,我使用工具栏按钮创建了一个插件.当用户单击按钮时,我将显示一个对话框,该对话框接受项目名称和少量其他信息,并使用该信息创建.dsp文件.当用户单击完成"按钮时,我必须将该项目插入到工作区中(就像MFC AppWizard一样).使用向导创建项目后,我不想使用将项目插入到工作区"菜单选项将项目插入到工作区中(应该会自动添加它).
Hello Graham,
Thanks for your replay. My requirement is as follows.
I have to create a customized project (Which is not available in the File->New->Projects tab of visual studio) and add in to the workspace. So I created an addin with a toolbar button. When the user clicks the button, I display a dialog box which accepts the project name and few other information and create a .dsp file using that information. When the user clicks the finish button, I have to insert that project in to the workspace (like MFC AppWizard does). After creating the project using the wizard, I dont want to insert the project in to workspace using the "Insert project into Workspace" menu option (it should get added automatically).


这篇关于如何通过Visual Studio外接程序将现有VC6项目添加到工作区中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆