Changing A Projects .Net Version

The following is based on the guide from https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=vs-2019 In Solution Explorer, select your project. Menu > Project > Unload project (only shown when you have the pruoject selected) This unloads the project (.vcxproj) file for your project. Menu > File > Open > File > In the Open File dialog box, navigate to your […]

Read More

Making Visual C++ work the way we like

Menu > Tools > Options Text Editor > C/C++ General > Automatic brace completion = Off Tabs > Keep tabs Code Style > Formatting > Indentation > Indent case labels = Off Install Extra Components Old and new project will likely need things not added by the isntaller as default. Go to Windows programs and […]

Read More

Our Visual Studio Preferences for C++

These are some of the things we do to make Visual Studio behave the way we like for C++ development: Options > Text Editor > C/C++ General > Automatic brace completion = Off Advanced > Brace completion > Complete multiline comments = Off Formatting > General > Automatically format when I paste = OFF (Stops […]

Read More

64bit and 32bit executibles

Select 'Configuration Manager' Active solution configuration > Release Active solution platform > Select New.  Then select x64 and it will create the new configuration (if it doesn't exist then 64bit compilers are not installed) To build the x64 executable just select x64 from the projects drop down on the toolbar.  Note that it will be created in a […]

Read More

Creating A Windows Forms Project From scratch

This is our internal check list to create a new Windows Forms Project Create a ‘CLR’ > ‘Windows Forms Application’. This selects a C++/CLI project and will automatically set the /clr compiler option. For VS2013 and onwards… Microsoft have decided to discourage using C++ for new windows for applications, instead preferring people to use C# […]

Read More

If intellisense (auto complete) stops working

There can be an issue with the intellisense .ncb file. If the no compile browser (.ncb) file located at the root of your project directory is read-only or becomes corrupt in some manner, IntelliSense information will no longer be available. To fix this, do the following: Close the solution. Delete the .ncb file. Reopen the […]

Read More

Creating New Project From Existing Project

Copy the project to a new project directory Open it and rebuild it to ensure it builds correctly. In solution explorer right click the solution > Rename In solution explorer right click the project  > Rename Below here may need updating…. Rename the main project files to the new project name Open project by running […]

Read More