Menu

Installing_the_OWLNext_Application_template_for_Visual_Studio

OWLNext Application template for Visual Studio

Versions of this template are provided for Visual Studio 2013, 2015 and 2019, but the latter should work for later versions as well, although you may need to adjust the Platform Toolset (Configuration Properties | General).

The project template is set up for static linking with build options for 32-bit and 64-bit in debug and release configurations. If you need dynamic linking, then just define _OWLDLL for all configurations and set the RTL link mode accordingly (Configuration Properties | C/C++ | Code Generation | Runtime Library). If you need to build for Unicode (UTF-16), then change the character set setting for all configurations (Configuration Properties | General | Character Set). For Unicode, you also need to change the application entry point to "wWinMainCRTStartup" (Configuration Properties | Linker | Advanced | Entry Point).

The template makes sure that all the OWLNext resources are linked into the application. See "Resource Files" in the generated project. If you use dynamic linking, you should remove this resource file, since the OWLNext DLL contains all the OWLNext resources already. Also, note that this resouce file uses the environment variable OWLROOT in its path. If you use something else, and you have changed the include directory in the project settings (Configuration Properties | VC++ Directories), note that you need to change the path of the resource file manually.


Installation

  1. Download the template (Files | project-templates).
  2. Browse to the user's Visual Studio folder, e.g. "Documents\Visual Studio 2015".
  3. Move the template (zip) into "Templates\ProjectTemplates\Visual C++ Project".
  4. Open Visual Studio and select "File | New Project".

The OWLNext Application template should now show below "Visual C++".


Related

Bugs: #297
Discussion: No Visual Studio Setup Instructions
News: 2014/08/owlnext-application-template-for-visual-studio
Wiki: Installing_OWLNext
Wiki: Installing_OWLNext_from_the_Code_Repository
Wiki: Tools

Discussion

  • Samuel Bouskila

    Samuel Bouskila - 2015-12-16

    Hi all,
    here's an updated version on the project template for Visual Studio 2015.

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2015-12-16

    Hi Samuel,

    I see that you have replaced "owlnext-resources.rc" by "$(OWLROOT)\include\all.rc". That's fine, now that all supported OWLNext versions (7, 6.42, 6.34) do provide this file, but you haven't updated all of the template accordingly:

    • "description.txt" has not been updated; still refers to "owlnext-resources.rc".
    • "*.vcxproj.filters" has not been updated; still has <ResourceCompile> tag for "owlnext-resources.rc".

    I have fixed these issues and uploaded the corrected template to Files\project-templates. Please test.

     
  • ntworthy

    ntworthy - 2018-01-29

    Note: the owlnext-application-template-for-visual-studio-2015.zip from the Files section includes a relative folder designation, which prevents it from loading in VS2015. I rezipped without the relative folder name and it was then detected.

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2018-01-30

    Hi ntworthy, thanks for reporting this issue. I have now fixed it and uploaded the corrected template to Files\project-templates.

     
  • Vidar Hasfjord

    Vidar Hasfjord - 2020-05-14

    Updated project template for VS 2019 has been uploaded to Files\project-templates.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.