Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Unable to include 'Windows.h' in Qt WebAssembly project.

Unable to include 'Windows.h' in Qt WebAssembly project.

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 2 Posters 706 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pradson
    wrote on last edited by
    #1

    @lorn-potter

    Hello,

    I am unable to build my project(Based on Qt Widgets UI and C++ ) using Emscripten and Qt for WebAssembly. I am facing below mentioned errors-

    error: unknown type name 'HINSTANCE'
    fatal error: 'Windows.h' file not found
    

    As I have read the information from the forum, the windows.h is not part of the emscripten sdk.
    Please suggest how should I include Windows API into the WebAssembly project?

    Thanks,
    Pradson

    JonBJ 1 Reply Last reply
    0
    • P Pradson

      @lorn-potter

      Hello,

      I am unable to build my project(Based on Qt Widgets UI and C++ ) using Emscripten and Qt for WebAssembly. I am facing below mentioned errors-

      error: unknown type name 'HINSTANCE'
      fatal error: 'Windows.h' file not found
      

      As I have read the information from the forum, the windows.h is not part of the emscripten sdk.
      Please suggest how should I include Windows API into the WebAssembly project?

      Thanks,
      Pradson

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Pradson said in Unable to include 'Windows.h' in Qt WebAssembly project.:

      Please suggest how should I include Windows API into the WebAssembly project?

      I would assume you cannot, e.g. read https://github.com/emscripten-core/emsdk/issues/153

      Emscripten is a cross-compiler, it compiles code to the web - it can't compile windows-specific code, as those APIs are not implemented on the web platform.

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved