简体   繁体   中英

OpenGL set up problem when create new project via Visual Studio express 2017?

I'm using VisualStudio express 2017 as the IDE. I have set up everything for the OpenGL and everything works fine. But there is a problem, I realized that I have to set up the library and dependencies every time when I create a new project. Can anyone help me with this problem?

There's a solution to that called a Property Sheet . Since I don't use VS Express, I'll explain how to create and reuse properties for a Visual Studio Community Edition project.

  • Create a new project , for example a C++ Console Application (or whatever programming language you're using)

  • To display Property Manager go to View > Property Manager or View > Other Windows > Property Manager

  • In the Property Manager , left-click on the "triangle symbol" next to your project name to display the configurations.Choose the configuration you want to set up (here Debug | Win32 is highlighted)

    物业管理窗口 .

  • Right-click on the configuration. Choose Add New Project Property Sheet . A property page dialog box appears. Enter a name (file extension .props ) and where to save it. Click Add .

  • Left-click on the "triangle symbol" next to your configuration. You should now see your newly created property sheet. Double-click on it.

  • Now configure your project how you want, include dependencies , libraries , Linker etc.

  • After configuring, right-click on your property sheet. Save it.

Now everytime you create a new project, right-click on your project name in the Property Manager and click Add existing property sheet and brwose to its location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM