Users\spham\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\startup.bat
@echo off
subst i: C:\Users\spham\Documents\dev\handmadeHreo\master
# Map the unzipped episode's source code to h: drive
subst h: C:\Users\spham\Documents\dev\handmadeHreo\handmade_hero_099_source\handmade_hero_day_NNN_source
# Delete drive mapping after each episode
subst /D h:
- You could also press Windows+R to open the Run dialog, execute
shell:Common Startup
- Personal User Path: shell:startup
- All Users Path: shell:common startup
@echo off
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
set path=I:\misc;%path%
Target=
%windir%\system32\cmd.exe /k w:\handmade\misc\shell.bat
@echo off
mkdir ..\build
pushd ..\build
cl -Zi ..\code\win32_handmade.cpp User32.lib
popd
Open exe for debugging in Visual Studio 2017
devenv ..\build\win32_handmade.exe
ndir%\system32\cmd.exe /k I:\misc\shell.bat
- WNDCLASSA
- Win32WindowProc
- OutputDebugStringA
- https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-patblt
- RegisterClassA
- CreateWindowExA
- GetMessageA
- TranslateMessage
- DispatchMessageA
- Win32ResizeDIBSection
- Win32UpdateWindow
- BeginPaint
- EndPaint
- DefWindowProc
- https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-createdibsection
- https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-stretchdibits
- https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/ns-wingdi-tagbitmapinfo
- https://docs.microsoft.com/en-us/previous-versions//dd183376(v=vs.85)
- https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-createcompatibledc
- https://msdn.microsoft.com/en-us/library/windows/desktop/aa366887(v=vs.85).aspx
- https://msdn.microsoft.com/en-us/library/windows/desktop/aa366892(v=vs.85).aspx
- https://docs.microsoft.com/en-us/previous-versions/windows/embedded/ms910649(v%3dmsdn.10)
- https://docs.microsoft.com/en-us/windows/desktop/api/xinput/nf-xinput-xinputgetstate
- /std:c++17 https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019
- accidentally appended a emi colon (;) to the end of a #define https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2447?view=vs-2019
- https://docs.microsoft.com/en-us/cpp/build/getprocaddress?view=vs-2019
- https://docs.microsoft.com/en-us/windows/desktop/inputdev/wm-keydown
- https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes
- https://docs.microsoft.com/en-us/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibrarya
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708921(v%3Dvs.85)
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708948%28v%3dvs.85%29
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708943(v=vs.85)
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ee416820%28v%3dvs.85%29
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ee416818%28v%3dvs.85%29
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708936%28v%3dvs.85%29
- https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ee419019%28v%3dvs.85%29
- IDirectSoundBuffer::Lock https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708932(v=vs.85)
- IDirectSoundBuffer::GetCurrentPosition https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708925%28v%3dvs.85%29
- IDirectSoundBuffer::Play https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708933(v=vs.85)
- IDirectSoundBuffer::Unlock https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708941(v=vs.85)
- sinf https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/sin-sinf-sinl?view=vs-2019
- XInput Versions https://docs.microsoft.com/en-us/windows/win32/xinput/xinput-versions
- QueryPerformanceCounter https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter
- LARGE_INTEGER union https://docs.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-large_integer~r1
- QueryPerformanceFrequency https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancefrequency
- __rdtsc https://docs.microsoft.com/en-us/cpp/intrinsics/rdtsc?view=vs-2019
- _alloca https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/alloca?view=vs-2019
- VistualAlloc https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc
- CreateFileA https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
- GetFileSize https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesize
- GetFileSizeEx https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfilesizeex
- ReadFile https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-readfile
- CloseHandle https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-closehandle
- VirtualFree https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualfree
- https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2017
- SysWOW64 emulator https://docs.microsoft.com/en-us/windows/win32/winprog64/running-32-bit-applications
- msvsc /MD vs /MT https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=vs-2017
- Dependency Walker vs dependencies https://social.msdn.microsoft.com/Forums/en-US/8c808d5b-5fda-4870-b06c-c44280285c4b/open-sourcing-dependency-walker-dependsexe?forum=visualstudiogeneral
- MSG struct https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-msg
- XInput deadzone https://docs.microsoft.com/en-us/windows/win32/xinput/getting-started-with-xinput#dead-zone
- sleep https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-sleep
- timeBeginPeriod https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timebeginperiod
- IDirectSoundBuffer::GetCurrentPosition https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mt708925(v%3Dvs.85)