Thread overview
[Issue 23818] Error HMODULE not defined, please use HMODULE
Apr 20, 2023
RazvanN
Apr 28, 2023
RazvanN
Aug 29, 2023
Vital
Jan 08, 2024
Victor Abenil
Jan 08, 2024
Victor Abenil
Jan 08, 2024
Dlang Bot
Jan 09, 2024
Dlang Bot
April 20, 2023
https://issues.dlang.org/show_bug.cgi?id=23818

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
This looks related, if not a dupe of, to 19816 : https://issues.dlang.org/show_bug.cgi?id=19816

--
April 20, 2023
https://issues.dlang.org/show_bug.cgi?id=23818

Steven Schveighoffer <schveiguy@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19816

--
April 28, 2023
https://issues.dlang.org/show_bug.cgi?id=23818

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 19816 has been marked as a duplicate of this issue. ***

--
August 29, 2023
https://issues.dlang.org/show_bug.cgi?id=23818

Vital <vital.fadeev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vital.fadeev@gmail.com

--- Comment #3 from Vital <vital.fadeev@gmail.com> ---
Created attachment 1887
  --> https://issues.dlang.org/attachment.cgi?id=1887&action=edit
advapi32 HMODULE patch

.\import\std\internal\windows\advapi32.d(36,9): Error: undefined identifier HMODULE, did you mean alias HMODULE?

See patch in attached file.

--
January 08, 2024
https://issues.dlang.org/show_bug.cgi?id=23818

Victor Abenil <vabenil@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vabenil@protonmail.com

--- Comment #4 from Victor Abenil <vabenil@protonmail.com> ---
I have this exact same issue compiling to windows. Though for me changing the import order doesn't seem to fix anything. My project uses `bindbc.opengl` instead of `bindbc.sdl`, asides from that it doesn't use anything windows specific.

Reproducible on this tag https://github.com/vabenil/vadgl/releases/tag/v0.2.0 in my repo.

--
January 08, 2024
https://issues.dlang.org/show_bug.cgi?id=23818

--- Comment #5 from Victor Abenil <vabenil@protonmail.com> ---
For further clarification I replicated the same issue on dmd v2.106.1 and dmd 2.107.0-beta.1. I can also replicate it on ldc2 v1.34.0, v1.35.0 and 1.36.0

--
January 08, 2024
https://issues.dlang.org/show_bug.cgi?id=23818

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@vabenil created dlang/dmd pull request #16007 "Fix issue 23818 - Error HMODULE not defined, please use HMODULE" fixing this issue:

- Fix issue 23818 - Error HMODULE not defined, please use HMODULE

  Use alias instead of DECLARE_HANDLE.

https://github.com/dlang/dmd/pull/16007

--
January 09, 2024
https://issues.dlang.org/show_bug.cgi?id=23818

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #16007 "Fix issue 23818 - Error HMODULE not defined, please use HMODULE" was merged into master:

- 0f975986e0299dca0e2880fc944d0427e35ec7a5 by vabenil:
  Fix issue 23818 - Error HMODULE not defined, please use HMODULE

  Use alias instead of DECLARE_HANDLE.

https://github.com/dlang/dmd/pull/16007

--