Не удается открыть файл включение windows h no such file or directory

Пользователь


    Автор темы

  • #1

Здравствуйте, недавно столкнулся с данной проблемой, а именно: «
Ошибка | 25 | error C1083: Не удается открыть файл включение: windows.h: No such file or directory c:\users\flex\downloads\private\zamanware\windows.h»
Прошу помочь(


  • #2

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Подключи данную библиотеку там где она требуется = профит.

Пользователь


    Автор темы

  • #3

Подключи данную библиотеку там где она требуется = профит.

Не подскажешь как?


  • #4

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

зашёл чтоб аву поменять и увидел это


  • #5

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

ZamanWare?? А так пофискить легко. Версия VS какая?


  • #6

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Чтобы подключить библиотеку,нужно всего лишь в начале нужного тебе файла прописать #include «Windows.h»(Это пример,пишешь сюда свою библиотеку)


  • #7

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

ZamanWare?? А так пофискить легко. Версия VS какая?

17, помоги мне тож)

зашёл чтоб аву поменять и увидел это


  • #8

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Чтобы подключить библиотеку,нужно всего лишь в начале нужного тебе файла прописать #include «Windows.h»(Это пример,пишешь сюда свою библиотеку)

неа, надо ставить дополнение так как база установлена, а дополнительная часть с windows.h нет.

короче, дуешь в visual studio installer -> изменить -> с++ -> и там ставишь галки справа как тут:

-> изменить. ПРОФИТ
сурсом замана поделитесь


  • #9

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

неа, надо ставить дополнение так как база установлена, а дополнительная часть с windows.h нет.

 
короче, дуешь в visual studio installer -> изменить -> с++ -> и там ставишь галки справа как тут:

-> изменить. ПРОФИТ
сурсом замана поделитесь

https://yougame.biz/threads/18539/

зашёл чтоб аву поменять и увидел это


  • #10

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.


  • #11

Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

неа, надо ставить дополнение так как база установлена, а дополнительная часть с windows.h нет.

 
короче, дуешь в visual studio installer -> изменить -> с++ -> и там ставишь галки справа как тут:

-> изменить. ПРОФИТ
сурсом замана поделитесь

Я высказал свое мнение о этой ошибке,ибо сталкивался с ней пару раз и простого открытия библиотеки,вполне хватало всегда.

Пользователь


    Автор темы

  • #12

Я высказал свое мнение о этой ошибке,ибо сталкивался с ней пару раз и простого открытия библиотеки,вполне хватало всегда.

То-есть, нужно каждый файл добавлять в папку с софтом? З.Ы МайкрософтСДК установлен(путь: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include), там есть все недостающие файлы, но он их почему-то не находит.

Пользователь


  • #13

В свойствах проекта надо изменить версию сдк на ту которая есть.

Пользователь


    Автор темы

  • #14

В свойствах проекта надо изменить версию сдк на ту которая есть.

Тут нету пункта изменения версии SDK

Пользователь


  • #15

Тут нету пункта изменения версии SDK

Должна быть, сейчас не могу показать, не у компьютера.

Пользователь


  • #16

То-есть, нужно каждый файл добавлять в папку с софтом? З.Ы МайкрософтСДК установлен(путь: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include), там есть все недостающие файлы, но он их почему-то не находит.

Пользователь


    Автор темы

  • #17

Пользователь


  • #18

Есть. Ищи внимательнее.

Нету(

Пользователь


    Автор темы

  • #19

Пользователь


  • #20

Ищи. Даже подскажу — во вкладке отладка последний пункт.

Как использовать OAuth2 со Spring Security в Java

Javaican 14.05.2025

Протокол OAuth2 часто путают с механизмами аутентификации, хотя по сути это протокол авторизации. Представьте, что вместо передачи ключей от всего дома вашему другу, который пришёл полить цветы, вы. . .

Анализ текста на Python с NLTK и Spacy

AI_Generated 14.05.2025

NLTK, старожил в мире обработки естественного языка на Python, содержит богатейшую коллекцию алгоритмов и готовых моделей. Эта библиотека отлично подходит для образовательных целей и. . .

Реализация DI в PHP

Jason-Webb 13.05.2025

Когда я начинал писать свой первый крупный PHP-проект, моя архитектура напоминала запутаный клубок спагетти. Классы создавали другие классы внутри себя, зависимости жостко прописывались в коде, а о. . .

Обработка изображений в реальном времени на C# с OpenCV

stackOverflow 13.05.2025

Объединение библиотеки компьютерного зрения OpenCV с современным языком программирования C# создаёт симбиоз, который открывает доступ к впечатляющему набору возможностей. Ключевое преимущество этого. . .

POCO, ACE, Loki и другие продвинутые C++ библиотеки

NullReferenced 13.05.2025

В C++ разработки существует такое обилие библиотек, что порой кажется, будто ты заблудился в дремучем лесу. И среди этого многообразия POCO (Portable Components) – как маяк для тех, кто ищет. . .

Паттерны проектирования GoF на C#

UnmanagedCoder 13.05.2025

Вы наверняка сталкивались с ситуациями, когда код разрастается до неприличных размеров, а его поддержка становится настоящим испытанием. Именно в такие моменты на помощь приходят паттерны Gang of. . .

Создаем CLI приложение на Python с Prompt Toolkit

py-thonny 13.05.2025

Современные командные интерфейсы давно перестали быть черно-белыми текстовыми программами, которые многие помнят по старым операционным системам. CLI сегодня – это мощные, интуитивные и даже. . .

Конвейеры ETL с Apache Airflow и Python

AI_Generated 13.05.2025

ETL-конвейеры – это набор процессов, отвечающих за извлечение данных из различных источников (Extract), их преобразование в нужный формат (Transform) и загрузку в целевое хранилище (Load). . . .

Выполнение асинхронных задач в Python с asyncio

py-thonny 12.05.2025

Современный мир программирования похож на оживлённый мегаполис – тысячи процессов одновременно требуют внимания, ресурсов и времени. В этих джунглях операций возникают ситуации, когда программа. . .

Работа с gRPC сервисами на C#

UnmanagedCoder 12.05.2025

gRPC (Google Remote Procedure Call) — открытый высокопроизводительный RPC-фреймворк, изначально разработанный компанией Google. Он отличается от традиционых REST-сервисов как минимум тем, что. . .

As the title suggests, attempting to open the main upx-3.94-WithDependancy.sln in visual studio produces the following error at compile time:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C1083	Cannot open include file: 'windows.h': No such file or directory

image

Attempted to fix this by following -> https://stackoverflow.com/questions/12748896/cannot-open-windows-h-in-microsoft-visual-studio

however it continues to have this error.

Additional Info:
Using visual studio 2019

When installing the Windows SDK 6.1 and using the Visual Studio 2008 compiler, the following error message may be displayed in certain environments.

Cannot open include file: 'windows.h': No such file or directory

This error is caused by missing content in the batch file that sets up the Visual Studio build environment. The solution is as follows.

Search for and locate the windows.h header file in the C:\Program Files\Microsoft SDKs directory.
Example) C:\Program Files\Microsoft SDKs\Windows\v6.1\Include

Open the file C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat with an editor and add the path SDKs\windows\v6.0A\include, SDKs\windows\v6.0A\lib to the INCLUDE, LIB, and LIBPATH variables.

Example) line 26 @set Path to add to INCLUDE: C:\Program Files\Microsoft SDKs\Windows\v6.1\Include

@set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v6.1\Include;%VCINSTALLDIR%\ATLMFC\INCLUDE;%VCINSTALLDIR%\INCLUDE;%INCLUDE%\

  1. 08-21-2006


    #1


    Codigious


    windows.h no such file or directory

    I am working on getting a new compiler and the one im looking at is MVC(not sure if the ++ are included on the end lol). Anyways, my current compiler is Dev 4.9.2 and it compiles and runs my program just fine. But when I moved the code over to the MVC and tried it, it didnt work. I got the same error multiple times. So then I downloaded Platform SDK and added in the lib,bin and include files I was supposed to. I also changed a line of code that had kerbel.lib or something like that on it(which I was supposed to do). And I still cant get it to work.

    here is the error message:

    Code:

     fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

    This is how I used it in the actual code:

    Code:

    #include <iostream>
    #include <windows.h>

    I tried changing windows.h to windows and that didnt work either. So im nnot really sure wat else to do. If someone could explain to me why it doesnt work and/or how to fix it that would be great.

    Last edited by FingerPrint; 08-21-2006 at 04:46 AM.

    Code:

    /* ------------------------------------------------------------------*/
                               // INSERT CODE HERE
    /* ------------------------------------------------------------------*/


  2. 08-21-2006


    #2


    Registered User


    did you follow all the installation steps ?


  3. 08-23-2006


    #3


    Codigious


    I didn’t see step 5 the first time through(I was in a hurry and didnt scroll down that far). Anyways, I commented out the for lines that it says t comment out. Then it says:

    Code:

    From the File menu, click New Project. In the New Project dialog box, 
    expand the Visual C++ node in the Product Types tree and then click 
    Win32. Click on the Win32 Console Application template and then give 
    your project a name and click OK. In the Win32 Application Wizard 
    dialog box, make sure that Windows application is selected as the 
    Application type and the ATL is not selected. Click the Finish button 
    to generate the project.

    Code:

    In the Win32 Application Wizard dialog box, make sure that Windows 
    application is selected as the Application type 
    
    /* On this part it wont let me select windows application. 
    Only console application. */

    I did exactly what it said but cant finish it because I cant make a windows app. And I have no idea why I cant.

    Code:

    /* ------------------------------------------------------------------*/
                               // INSERT CODE HERE
    /* ------------------------------------------------------------------*/


  4. 08-23-2006


    #4


    (?<!re)tired


    If you were in a hurry then, double check now if you have the needed paths on the include list.

    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.


  5. 08-24-2006


    #5


    Codigious


    Well, I’m glad you said that mario. I did add the paths I was supposed to add, but I added all 3 of them into the executables. I fixed that part. But I still got the error when I ran my program, and I still cant make a windows app. I still can only make a console app.

    I also just noticed another thing. On the page Ancient Dragon pointed out says to comment out lines 441-444

    Code:

    // WIN_APP.disabled = true;
    // WIN_APP_LABEL.disabled = true; 
    // DLL_APP.disabled = true; 
    // DLL_APP_LABEL.disabled = true;

    in C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\103 3. I went there, opened the file in Notepad(it mentioned opening it in a text editor) and looked for the 4 lines. Well, I only found these 3 lines.

    Code:

    // WIN_APP.disabled = true;
    // DLL_APP.disabled = true;
    // LIB_APP.disabled = true;

    So, should I just replace the 3 lines I have with the 4 lines it says should be commented out. Or could this really screw up the program?

    EDIT: Ok cool. I found the 4 lines. I didnt notice them the first few searches. But I just found them and commented them out. Its working a’ok now.

    RE-EDIT!: Bah! Ok, I thought it was working but unfortunately it isnt. I can now make windows apps and dll’s. Yet it still says that there is no winows.h. I just dont get it, ive done all the install steps. All the other headers work just fine. I dont know what else to do from here. It works just fine in Dev C++. Is there some stupidly obvious lib im supposed to add or something?

    Last edited by FingerPrint; 08-24-2006 at 04:43 PM.

    Code:

    /* ------------------------------------------------------------------*/
                               // INSERT CODE HERE
    /* ------------------------------------------------------------------*/


  6. 08-24-2006


    #6


    Codigious


    Well, I did a google search and it seems a ton of people are having this problem. Ill keep working at it but I think I might as well go back to Dev C++ or find some other compiler. Thanks for the help though.

    Code:

    /* ------------------------------------------------------------------*/
                               // INSERT CODE HERE
    /* ------------------------------------------------------------------*/


  7. 08-26-2006


    #7


    Registered User


    Allright, I think I figured out the problem; It is with microsoft’s website itself; The paths that they provide are inaccurate; It says:

    Code:

    Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
    
    Add the paths to the appropriate subsection:
    
    Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
    
    Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
    
    Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

    But it should actually say:

    Code:

    Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
    
    Add the paths to the appropriate subsection:
    
    Executable files: C:\Program Files\Microsoft Platform SDK\Bin
    
    Include files: C:\Program Files\Microsoft Platform SDK\Include
    
    Library files: C:\Program Files\Microsoft Platform SDK\Lib

    At least that worked for me; But if that doesn’t work for you, all you have to do is when you are adding a path, instead of copying and pasting the path, click on the «…» button at the end of the box and then browse to the directory that Microsoft PSDK is saved at, then doubleclick on «Bin», «Include», or «Lib» depending on what path you are changing; This should work;


  8. 08-26-2006


    #8


    Registered User


    The #include <windows.h> not working problem…SOLVED!

    Okay, I have noticed a lot of people having this problem(myself included), on this board, and all accross google; I think that I have discovered the error though; The error is with microsoft’s «using platform sdk with visual c++» instruction page, which is located at http://msdn.microsoft.com/vstudio/ex…k/default.aspx; The paths that they provide are inaccurate; It says:

    Code:

    Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
    
    Add the paths to the appropriate subsection:
    
    Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
    
    Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
    
    Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

    But this is incorrect; It should actually say:

    Code:

    Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
    
    Add the paths to the appropriate subsection:
    
    Executable files: C:\Program Files\Microsoft Platform SDK\Bin
    
    Include files: C:\Program Files\Microsoft Platform SDK\Include
    
    Library files: C:\Program Files\Microsoft Platform SDK\Lib

    If that doesn’t work for you, all you have to do is when you are adding a path, instead of copying and pasting the path, click on the «…» button at the end of the box and then browse to the directory that Microsoft Platform SDK is saved at, then doubleclick on the folder named «Bin», «Include», or «Lib», depending on what path you are changing; This worked for me, so chances are it will also work for you;


  9. 08-26-2006


    #9


    C++ Witch


    Interesting. I installed Platform SDK, and the correct path is what is given by Microsoft’s directions. Which version of the PSDK did you download and install?

    Originally Posted by Bjarne Stroustrup (2000-10-14)

    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. «Finding the smallest program that demonstrates the error» is a powerful debugging tool.

    Look up a C++ Reference and learn How To Ask Questions The Smart Way


  10. 08-26-2006


    #10


    Registered User


    Originally Posted by laserlight

    Interesting. I installed Platform SDK, and the correct path is what is given by Microsoft’s directions. Which version of the PSDK did you download and install?

    the at this address http://www.microsoft.com/downloads/d…displaylang=en


  11. 08-26-2006


    #11


    C++ Witch


    Then you probably downloaded the old version. The new version is also linked to from there, under the «Related Resources» section.

    Originally Posted by Bjarne Stroustrup (2000-10-14)

    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. «Finding the smallest program that demonstrates the error» is a powerful debugging tool.

    Look up a C++ Reference and learn How To Ask Questions The Smart Way


  12. 08-26-2006


    #12


    Registered User


    Ah…Oh, well then I should prolly see about deleting this thread… God, I feel a little dumb now…Lol;


Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Пропадают иконки на панели задач windows 10
  • Активация windows 10 home по телефону
  • Перенос рабочего стола на другой диск windows 10
  • Paint kolourpaint для windows 7
  • Windows server 2016 32 bit torrent