Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
(.venv310) D:\My Documents\PycharmProjects\c19ya>pip install discord
Collecting discord
Downloading discord-1.7.3-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.7.3
Downloading discord.py-1.7.3-py3-none-any.whl (786 kB)
|████████████████████████████████| 786 kB 3.3 MB/s
Collecting aiohttp<3.8.0,>=3.6.0
Downloading aiohttp-3.7.4.post0.tar.gz (1.1 MB)
|████████████████████████████████| 1.1 MB 6.4 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting yarl<2.0,>=1.0
Downloading yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB)
|████████████████████████████████| 122 kB 6.4 MB/s
Collecting typing-extensions>=3.6.5
Downloading typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Collecting multidict<7.0,>=4.5
Downloading multidict-5.2.0-cp310-cp310-win_amd64.whl (45 kB)
|████████████████████████████████| 45 kB ...
Collecting chardet<5.0,>=2.0
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 6.8 MB/s
Collecting attrs>=17.3.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
|████████████████████████████████| 53 kB ...
Collecting async-timeout<4.0,>=3.0
Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting idna>=2.0
Downloading idna-3.3-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB ...
Building wheels for collected packages: aiohttp
Building wheel for aiohttp (pyproject.toml) ... done
Created wheel for aiohttp: filename=aiohttp-3.7.4.post0-py3-none-any.whl size=451944 sha256=295a5973c8ef6d5e7beb25a0b1826debe65c61e00afee3e97c007c071f295665
Stored in directory: C:\Users\Andrew\AppData\Local\Temp\pip-ephem-wheel-cache-4m9jjg24\wheels\fc\84\e0\52113c57eb9b09b6b187a0f369eaad6fc7fc64bb7247c83b89
Successfully built aiohttp
Installing collected packages: multidict, idna, yarl, typing-extensions, chardet, attrs, async-timeout, aiohttp, discord.py, discord
Successfully installed aiohttp-3.7.4.post0 async-timeout-3.0.1 attrs-21.2.0 chardet-4.0.0 discord-1.7.3 discord.py-1.7.3 idna-3.3 multidict-5.2.0 typing-extensions-4.0.0 yarl-1.7.2
(.venv310) D:\My Documents\PycharmProjects\c19ya>
OSVERSIONINFOEX osvi = {};
то все работает...Хоть debug, хоть release, хоть x86, хоть amd65. См. кусок с исправлениями (если объединить все в один файл). #include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <windows.h>
bool getWindowsVersion(char* version);
int main(int argc, char* argv[])
{
// куча всяких printf();
#ifdef _WIN32
char version[2500];
if (getWindowsVersion(version))
printf("Operating System: %s\n", version);
#endif
#if defined(__USE_LARGEFILE) && defined(__USE_LARGEFILE64)
printf("\nLarge file available: %d offset\n", __USE_FILE_OFFSET64);
#endif
}
bool getWindowsVersion(char* version)
{
int index = 0;
OSVERSIONINFOEX osvi;