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?
- 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?
- bash: pip: command not found
- How to uninstall pip on OSX?
- ImportError: No module named pip
- 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
- Could not install packages due to an EnvironmentError:
- 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
- import opencv vs import cv2
- How to pip or easy_install tkinter on Windows
- Conda uninstall one package and one package only
- 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
- How to check Django version
- Updating matplotlib in virtualenv with pip
- filename.whl is not a supported wheel on this platform
- What is the difference between pip and conda?
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- How to know the version of pip itself
- How do I install the yaml package for Python?
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- AttributeError: Module Pip has no attribute ‘main’
- 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
- Django upgrading to 1.9 error “AppRegistryNotReady: Apps aren’t loaded yet.”
- How to uninstall mini conda? python
- How to get pip to work behind a proxy server
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Convert Python program to C/C++ code?
- Using Pip to install packages to Anaconda Environment
- How are Pipfile and Pipfile.lock used?
- Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock
- pg_config executable not found
- ‘Pip’ is Not Recognized as an Internal or External Command windows 10 CMD
- How to reinstall a pip package even if it exists
- How can I install Python’s pip3 on my Mac?
- pip install mysql-python fails with EnvironmentError: mysql_config not found
- No module named “Torch”
- upgade python version using pip
- django MultiValueDictKeyError error, how do I deal with it
- clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- How do I install a pip package globally instead of locally?
- python mpl_toolkits installation issue
- Pipenv: Command Not Found
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- python pip on Windows – command ‘cl.exe’ failed
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- NumPy array is not JSON serializable
- You are trying to add a non-nullable field ‘new_field’ to userprofile without a default
- Zsh: Conda/Pip installs command not found
- ImportError: No module named ‘yaml’
- super(type, obj): obj must be an instance or subtype of type
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- Find which version of package is installed with pip
- Python/Django: log to console under runserver, log to file under Apache
- TensorFlow not found using pip
- Is Python faster and lighter than C++?
- Django reverse lookup of foreign keys
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- Python 3.6 No module named pip
- H14 error in heroku – “no web processes running”
- What does this Django regular expression mean? `?P`
- Is it better to use path() or url() in urls.py for django 2.0?
- Unable to resolve ‘requests’. IntelliSense may be missing for this module. Visual Studio/Python
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- Python for C++ Developers
- Could not install packages due to an EnvironmentError: [Errno 13]
- Why am I getting ImportError: No module named pip ‘ right after installing pip?
- No module named django but it is installed
- What does on_delete do on Django models?
- How to check if a user is logged in (how to properly use user.is_authenticated)?
- The view didn’t return an HttpResponse object. It returned None instead
- gunicorn.errors.HaltServer:
django - How to install NumPy for Python 3.6
- How to install numpy to Python 3.5?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- Line is too long. Django PEP8
- __init__() got an unexpected keyword argument ‘user’