Msdn documentation explicitly tells you (a) in which header file a function is declared and (b) which header file you are supposed to include.
Most functions tell you to include windows.h
, for example SendMessage
Some function, that were added later or have very specific use cases, are only available through other header files, for example SetupDiEnumDeviceInfo.
So no, it is not bad practice to follow their advice. However, I strongly recommend disabling some parts of it before including via macro, e.g.
#define NOMINMAX #include <Windows.h>
because otherwise you will get a min
and a max
macro that will interfere with std::min
and std::max
.
Related Posts:
- ‘pip’ is not recognized as an internal or external command
- Where does pip install its packages?
- Where does pip install its packages?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- No module named ‘psycopg2’
- No module named pkg_resources
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- Django Rest Framework — no module named rest_framework
- How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install django-heroku using pip
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- How to install pip with Python 3?
- How to update/upgrade a package using pip?
- How do I update\upgrade pip itself from inside my virtual environment?
- How to update/upgrade a package using pip?
- How can I upgrade specific packages using pip and a requirements file?
- bash: pip: command not found
- bash: pip: command not found
- How to uninstall a package installed with pip install –user
- How to uninstall pip on OSX?
- How can I install packages using pip according to the requirements.txt file from a local directory?
- ImportError: No module named pip
- ImportError: No module named pip
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How do I install pip on macOS or OS X?
- Pip freeze vs. pip list
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- ImportError: No module named tensorflow
- Where is BeautifulSoup4 hiding?
- How to install python3 version of package via pip on Ubuntu?
- Could not install packages due to an EnvironmentError:
- django: TypeError: ‘tuple’ object is not callable
- Could not find a version that satisfies the requirement tensorflow
- How do I install a Python package with a .whl file?
- pip/python: normal site-packages is not writeable
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Could not find a version that satisfies the requirement tensorflow
- How do I install a Python package with a .whl file?
- How to install pytorch in Anaconda with conda or pip?
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- “ssl module in Python is not available” when installing package with pip3
- Configuring so that pip install can work from github
- import opencv vs import cv2
- How to pip or easy_install tkinter on Windows
- python3 command not found after installing python with pyenv
- Conda uninstall one package and one package only
- pip or pip3 to install packages for Python 3?
- Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries
- No module named MySQLdb
- Error after upgrading pip: cannot import name ‘main’
- filename.whl is not supported wheel on this platform
- “ssl module in Python is not available”
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- No module named MySQLdb
- How to check Django version
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- E: unable to locate package pip
- What is the difference between pip and conda?
- bash: pip: command not found
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How to know the version of pip itself
- How to switch Python versions in Terminal?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- is not JSON serializable
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How do I install the yaml package for Python?
- Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty
- ModuleNotFoundError: No module named ‘matplotlib’
- Install mysql-python (Windows)
- How to install PIP on Python 3.6?
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- AttributeError: Module Pip has no attribute ‘main’
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- pg_config executable not found
- django:django.core.exceptions.AppRegistryNotReady: Apps aren’t loaded yet
- Can I force pip to reinstall the current version?
- How can I install Python’s pip3 on my Mac?
- Removing pip’s cache?
- setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Could not find a version that satisfies the requirement
- What is the purpose of “pip install –user …”?
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- How to upgrade all Python packages with pip
- How do I remove all packages installed by PIP?
- What is the easiest way to remove all packages installed by pip?
- How to uninstall mini conda? python
- How to get pip to work behind a proxy server
- Can’t compare naive and aware datetime.now() <= challenge.datetime_end
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Convert Python program to C/C++ code?
- Using Pip to install packages to Anaconda Environment