| Autor |
Wiadomość |
fa1thly ~user
Dołączył: 13 Lip 2009 Posty: 66
|
|
Właściwie pytanie jest jedno:
Jak zrobić aby po otworzeniu nowego projektu poprzez New -> Project -> Win32 - > Win32 Console Application
otwierał się nowy projekt... jednocześnie tworzył się (i otwierał) plik main.cpp z wpisanymi już liniami:
| c++: | #include<iostream>
using namespace std;
int main()
{
return 0;
}
|
Czyli jak zrobić niejako szablon (bo tak to można chyba nazwac)?
|
|
| Powrót do góry |
|
|
hobson +Przyjaciel P-ZONE
Dołączył: 21 Gru 2006 Posty: 1574
Pomógł: 266
|
|
| Powrót do góry |
|
|
fa1thly ~user
Dołączył: 13 Lip 2009 Posty: 66
|
|
hmmm... może jakaś instrukcja po polsku... bo nie wszystko kapuje
to chyba chodzi o to ..
1.
Create a project.
2.
Modify or delete the files in the project, or add new files to the project.
3.
Edit the code files to indicate where parameter replacement should take place. For more information on parameter replacement, see How to: Substitute Parameters in a Template.
4.
Create an XML file and save it with a .vstemplate extension in the same directory as your project, but do not add it to the project in Visual Studio.
5.
Author the .vstemplate XML file to provide project template metadata. For more information, see the example in the following section.
6.
Select the files included in your template (including the .vstemplate file), right-click, select Send To, and click Compressed (zipped) Folder. The files that you previously extracted are compressed into a .zip file.
7.
Place the .zip template file in the Visual Studio project template directory. By default, this directory is My Documents\Visual Studio 2008\Templates\ProjectTemplates.
niby zrobiłem wszystko co tu pisze ale jak teraz używać nowego szablonu? Przez New -> Project??? i co dalej?
|
|
| Powrót do góry |
|
|
hobson +Przyjaciel P-ZONE
Dołączył: 21 Gru 2006 Posty: 1574
Pomógł: 266
|
|
| Powrót do góry |
|
|
fa1thly ~user
Dołączył: 13 Lip 2009 Posty: 66
|
|
hmm nadal nic nie rozumiem .... mogłbyś powiedzieć mi krok po kroku jak to zrobic?
|
|
| Powrót do góry |
|
|
|
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
MapaPowered by phpBB © 2001, 2005 phpBB Group
|
|