Visual Studio, custom project templates, install, uninstall


wxVsProTemp

(wxWidgets Visual Studio Project Template)
 --        -      -      ---     ----


This Project Template allows to create a (running!) wxWidgets project
with Visual Studio (tested with Visual Studio 20222 and
wxWidgets 3.2.4). It creates 2 header and 2 C++ source files plus a
resource (*.rc) file for the icon (plus the icon taken from wxWidgets).
The icon will be shown in the application and in Windows File Explorer
for the executable file.

FILES

wxVsProTemp.zip                 The project template file (DO NOT UNPACK IT!)
vstudioProjectTemplates.htm     Short description how to add (and remove)
                                custom project templates in
                                Microsoft Visual Studio
LICENSE_wxVsProTemp.txt         The licence you must accept if distributing
                                modified versions of wxVsProTemp (this project
                                template). In projects created with wxVsProTemp
                                you may change anything without any note(!).
README.txt                      You are just reading this file
wxDoc3v2v4hello.cpp             Copy of the ‘Hello World Example’ of the
                                official wxWindows documentation (V3.2.4), see
                                in FAQ below (How can I build a project where
                                the source is in one file?).

PREREQUISITES

wxWidgets must be installed (currently only tested for the version compiled
self from the source code) in all 4 variants: Static libraries debug, static
libraries release, dynammic libraries (DLL) debug, dynamic libraries (DLL)
release. The environment variable WXWIN must be set. See the wxWidgets
documentation.

CREDITS

doublemax and PB from the wxWidgets forum
(https://forums.wxwidgets.org/index.php)

wxVsProTemp is Copyright (c) 2024 Peter Sulzer, Fürth - all rights reserved

The official homepage is (June 2024) peter-sulzer.bplaced.net. Expand the menu
‘Softwareentwicklung’ in the left navigation column. Unfortunately at time
of writing I have not yet included wxVsProTemp (will do it, if I find time).

FAQ

Q: How can I build a project where the source is in one file?

A: Here the ‘Hello World Example’ from the official wxWidgets documentation

‘Create a new project’ (or File->New->Project...) and select ‘wxProject’ as
project template.

Under ‘Project name’ enter a name for the project, e.g. wxDoc3v2v4hello.
Under ‘Location’ select the directory where your project shall be created.
Optionally select checkmark ‘Place solution and project in the same directory’
Click on button ‘Create’.

In Solution Explorer in folder ‘Header Files’ delete all files (myapp.h and
myframe.h) and in folder Source files delete all files (mýapp.cpp and
myframe.cpp). In folder ‘Resource Files’ delete all files (wxproject.rc and
wxproject.ico).

In Solution Explorer right click on ‘Source Files’ then select ‘Add->Module...’
and in the dialog click on ‘C++ File (.cpp)’. In the text entry field Name
enter a name (e.g. wxDoc3v2v4hello.cpp) and click on button ‘Add’.

In this file paste the Code from the ‘Hello World Example’. As this may be
change in the official documentation, I have included it in this archive
(wxDoc3v2v4hello.cpp).

Run the program (the executable file will of course be named as the
project name, e.g. wxDoc3v2v4hello.exe.

Exercise: Build the Hello World Example but do not delete the header and
source files. Instead copy and paste from the example into the correct
header and source files (myapp.h/cpp and myframe.h/cpp).
