Arks

How can I program default.js

I need:

1. Create managed windows forms application

2. Set some special config:

Is it possible to write something like config.console="..." and just copy all params from my project

3. As I said I've already created some project, now I want to add it to my 'custom wizard'. How What do I need to rename inside my files (into something like [!output PROJECT_NAME] )

Thanks in advance.




Re: Visual Studio Extensibility How can I create C++/CLI template? Need info about programming default.js...

Dmitry Pavlov

Hi Artem,

I am not sure I understand what are you talking about Could you please provide more details about your problem

Thanks,






Re: Visual Studio Extensibility How can I create C++/CLI template? Need info about programming default.js...

Arks

Sure.

I've made a project using C++/CLI (managed extensions for c++, visual studio 2005). Then I will make other projects, based on this one.

I want to add my project to "File->New project..." dialog box. There standard projects and there are "My template" section.

Problems:
1. You cannot create a VC template, visual studio support only C#, VB, JScript. Templates in c#, vb, jscript can be created using "file->export template..." wizard.
I've found that you can create custom templates for in c++ using "File->New project->Custom Wizard".

2. Custom Wizard creates a new wizard in which you should add the desired functionality. To do so you need:
a) Customize default.js file. It has function in written JScript. So, you can change them, add desired functionality throw them. For example, I need to set some spectial configuration for the future project. The main problem: I cannot find any description of the object of visual studio. E.g.: To change configuration I need to set some fields in config object, but I don't know what fields... Can't find description...
b) Add your project's files. I have my project. But to make it a template I need to change something in it:
maybe some names of files, some names of classes, namespaces inside it... Really, I just don't have any idea what names I should change and how
c) What code should I add to default.js to add my files into this custom wizard...

Just try to create a "Custom Wizard" and I'll understand what I'm talking about...

btw, Dmitry, I think you are Russian... Is it fine to talk Russian here
A better idea: my icq: 219-224-925

Thanks for reply.





Re: Visual Studio Extensibility How can I create C++/CLI template? Need info about programming default.js...

Dmitry Pavlov

Hi Artem,

Thanks for detailed description - I hope forum members will provide ideas how to do that.

Here is a post about C++ and templates. Maybe it will be helpful for you.

P.S. Most of forum members don't speak in Russian so I don't think that is a good idea to use it here. I will contact you..