Click here to Skip to main content
16,005,491 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 14-Mar-10 13:40pm
v2

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.
 
Share this answer
 
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).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900