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.
The OWLNext Application template should now show below "Visual C++".
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
Hi all,
here's an updated version on the project template for Visual Studio 2015.
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:
I have fixed these issues and uploaded the corrected template to Files\project-templates. Please test.
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.
Hi ntworthy, thanks for reporting this issue. I have now fixed it and uploaded the corrected template to Files\project-templates.
Updated project template for VS 2019 has been uploaded to Files\project-templates.