First post, by emendelson
Many years ago, TeaRex (who seems to have left the forum since then) very generously gave me his complete Visual Studio build environment for DOSBox, and that got me started on my own project. (I could have used MinGW, but I didn't know that then.)
So, in the hope of helping other beginners, I've put together a complete build environment for current DOSBox SVN for Visual Studio 2015 (or Visual Studio 2017), here:
https://www.dropbox.com/s/wfyeop3pkja51dk/DOS … -VS2015.7z?dl=1
All the paths in the configuration file are relative, so this should work on any system with Visual Studio 2015 or 2017 installed. Just expand the 7z archive and double-click on the CMD file in the top-level directory to open the project in Visual Studio. When you build, you may see irrelevant error messages, and you can run the executable from the visualc_net folder named DOSBox Binaries. If you right-click on the project in VS and choose Open Folder in File Explorer, that folder will be visible.
I've disabled modem, network, and screenshots in config.h, but you can easily re-enable them. I did not include debug code, because this is not designed for experts but for beginners like me (I've been a beginner for the past ten years, unfortunately).
This may also be useful for anyone who wants to move from VS2010 to VS2015 or later for working on DOSBox.
I figured out how to do all this by following this video and making a few very minor changes to the procedure it describes:
https://www.youtube.com/watch?v=REOV8_eXPpc
I changed things by using relative paths in the configuration, suppressing some warnings, changing some output options, and removing as many unneeded files as I could.
I hope someone finds this useful for getting started.
EDIT: I've now added source and a binary for Wengier Wu's dosbox-lfn branch, with the sources updated to conform to current SVN. For details see the third post below.
EDIT: Someone in another thread thought this requires Visual Studio 2015, so I've put "or VS 2017" in bold.