Create a visual studio template
Download
1 / 20

Create A Visual Studio Template - PowerPoint PPT Presentation


  • 142 Views
  • Uploaded on

Create A Visual Studio Template. For OpenGL Application. Don’t waste time on adding references, copying files & writing the same code again & again. Get to the real programming immediately. Create a template for the things which are recurrent. Launch Microsoft Visual Studio.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Create A Visual Studio Template' - pomona


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Create a visual studio template

Create A Visual Studio Template

For OpenGL Application


Create a visual studio template

Don’t waste time on adding references, copying files & writing the same code again & again. Get to the real programming immediately. Create a template for the things which are recurrent.


Create a visual studio template

Launch Microsoft Visual Studio writing the same code again & again. Get to the real programming immediately. Create a template for the things which are recurrent.


Create a visual studio template

Create A Windows Forms Application with any name writing the same code again & again. Get to the real programming immediately. Create a template for the things which are recurrent.



Create a visual studio template

Click Browse Add Reference…




Create a visual studio template

Write the following code inside the class Form1. You may write all the code you wish to be prewritten at the time of creation of a new application.


Create a visual studio template

Go To Project write all the code you wish to be prewritten at the time of creation of a new application. Properties



Create a visual studio template

Go to the project.lib folder. Copy the path of lib folder from the address bar.


Create a visual studio template

In the Build Events tab of Project Properties, write the following command in the Post-build event command line box…

copy “PATH” “$(TargetDir)”

In place of PATH, paste the previously copied path and add \csgl.native.dll at the end, so the whole command looks like:

copy “F:\CsGL\GL\csgl1.4.1.dll\lib\csgl.native.dll” “$(TargetDir)”


Create a visual studio template

In the File menu, click on Export Template… following command in the Post-build event command line box…




Create a visual studio template

Now when you create a new project in visual studio, a new project type will be available under My Templates. Select that, write a project name, and click ok. All the code will be prewritten & reference to csgl.dll added by default.


Create a visual studio template

Once the template has been created, do not change the location of the lib folder or csgl.dll, or else you will have to add the reference again every time.If it is necessary to change the location, then the template must be recreated for the new location of csgl.dll.


Create a visual studio template

You have to do this whole procedure only ONCE. Afterwards, location of the you can use the template to create an OpenGL project. Now you don’t have to…1. Add reference to csgl.dll every time you create an OpenGL Application.2. Write the statement using CsGL.OpenGL;3. Create the View class every time.4. Copy the csgl.native.dll to output folder.


Thankyou tutorial by syed ghazanfar abbas rizvi
THANKYOU location of the Tutorial BySYED GHAZANFAR ABBAS RIZVI