Unable to include 'Windows.h' in Qt WebAssembly project.
Unsolved
Qt for WebAssembly
-
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 -
@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.