How to add an existing VC6 project in to a workspace from add-in or VBS macro - mfc

I want to add an existing VC6 project in to a workspace from add-in or VBS macro.
There is no 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.
Is there any other way to achive this. Please help.

Related

How to create "Multi Project Template With Custom Wizard" in Visual Studio 2017

I'm looking for help on making a multi project template (i.e. a deploy-able solution that contains multiple projects) with a custom wizard (to enable custom parameters to be entered).
I've followed "How to: Create Multi-Project Templates" to make the multi project template. This is working.
I've followed "How to: Use Wizards with Project Templates" to make my wizard in my VSIX files. This is working.
However, I can't get them to work together. I can either deploy my multi project template without a wizard OR I can get all of my individual project templates to show in the project gallery, via my VSIX file, with a working custom wizard.
Any ideas on how to combine the two methods?
I was able to adopt an answer from this blog.
The key is to package all of your exported projects (which come in ZIP which you have to extract) and your root .vstemplate file into a ZIP. This ZIP then needs to be an imported project template in your VSIX project.
Lastly, your wizard needs to be its own separate project you can reference in any of your individual project templates or in your VSIX. I had my wizard being created in my VSIX which just didn't seem to work.
As stated by Dan, you need to have your multi-project templates in a zip file.
However, you do not need to have the wizard code in a separate project, you can have it all in your VSIX project.
I your VSIX project, to add a reference to your .zip file, open your source.extension.vsixmanifest designer -> Assets -> New -> Select type Project Template and Source 'File on filesystem' and select your zip file.
Make sure to also add your VSIX project as Assembly if you haven't already: New -> Select type Assembly and Source 'a project in current solution' and select your VSIX project. (This is probably why it didn't work for Dan)
In your multi-template.vstemplate file you need to add a reference to the VSIX dll as described in "How to: Use Wizards with Project Templates" using <WizardExtension>
In addition you can also add a <CustomParameters> section inside <TemplateContent> if you want to set up default custom parameter values. See here for more info: "The registration elements for customizing the template wizard"
Example:
<CustomParameters>
<CustomParameter Name="$mycustomparameter1$" Value="value1"/>
<CustomParameter Name="$mycustomparameter2$" Value="value2"/>
</CustomParameters>

Export an project setting from visual studio 2010

I have created a project under an solution. I have set up all boost libs and some other project properties such as code generation.
Now I want to create another project and use the same settings. How can I reuse all the settings i have just used in this project in another project
I found another solution which involves property sheets:
Visual Studio: can I copy a project's properties to use in another project?
While in that case I need to create and setup the property sheet. Isn't there an simple solution like export and import?
As far as I know there is no import/export fuctionality (probably because property sheets exist).
Simple way: copy the project file, rename it, open it in a text editor and change the ProjectGuid (just modifying a single char/digit should be fine) and RootNamespace to match your new project name. New project, same settings.
Proper way: if you would have made your original changes to property sheets in the first place, you'd already have everything needed and could simply re-use those property sheets in any new project. So you could just start over now and create a new project, add a property sheets for boost stuff, another one for compiler/linker settings and so on (multiple property sheets is a good thing, as the can be combined in a modular way at will). Or you can create a new project, add property sheet and open it in a text editor side-by-side with your current project and just copy-paste the settings you altered.= to the property sheet.

VS Extension which declares a new project template and locate the generated project in a specific location of an imported tree

I would like to create a Visual Studio extension.
I installed Visual Studio 2012 and Visual Studio SDK 2012.
Now, I want my extension to create a new project template, and then to enable the user to create a new project of the new generated type. i.e: I would like that once the user will open VS and will click on "add new project", he will have a new project type in the list of the regular templates. The template will be a standard C project, with some additinal dependencies, some changes in the.vcxproj file, in the compiling configurations and more.
In additinal, I want that on the project creation, my extension will import an existiong solution from my computer to be the current VS solution, and that the new project will be added to a specific folder in that solution.
Is there any way to write code which is doing the described above, on the creation of a new project of the new template? Do I have any event/other handler on the template code, or in the package code, which I can use?
I googled tons, but I really don't know what is the best way I can do it...
Thanks a lot!

Change existing Netbeans C++ project to Qt Application

I have an existing Netbeans C++ project I want to change to a Netbeans Qt- Application. Is there an easy way to do it or do I have to reimport all my classes?
I do not know of any way to change a netbeans project after it is created. I would just make a new Qt application project. Then you can right click on the project name and choose "add existing items from folders...". That will allow you to import a whole folder of code files at one time. I would copy all the code out of the old project folder and into the new project folder before adding them, so the project code is all at the same place. Hope this helps.

How can I transfer an eclipse project to a new computer?

I am new to C++ and Eclipse (with CDT plugin) and I want to transfer the small project I have written on my old computer to my new one. On the new machine, must I create a new project, new files for each corresponding file in the project, then copy and paste the source into these files, or is there a setting in Eclipse that would allow me to import the files in one go. I have been searching all of the menu items for something such as "import project" or "import files" but I cannot find anything. Is copy and paste the only solution? I am using Ubuntu 12.04.
First, create a new and empty Workspace.
Then open the File menu and select Import....
Here you'll find an option to import existing projects, which should work with the project file in your old/copied source directory.
Create project from existing source: When selected, you can specify the location from which the New Java Project Wizard will
retrieve an existing Java project. In this case the wizard will
analyze the existing project and set up the build path automatically.
Click on Browse... to browse for a location of an existing Java
project.
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-wizard-java-project.htm
The easiest way is to copy the complete workspace folder.