digitalmars.D.learn - I need "windowsx.d" Someone can send It to me?
- Marcone (3/3) Sep 25 2020 I need windowsx.d but for I don't know the reason is not in dmd.
- Denis Feklushkin (2/5) Sep 25 2020 Try to convert C header into D file by dpp tool.
- Marcone (20/25) Sep 25 2020 When I try dpp in this tutorial:
- Denis Feklushkin (7/16) Sep 25 2020 URL?
- Marcone (3/20) Sep 25 2020 Good, but don't work converted file windowsx.h to windowsx.d.
- John Chapman (10/13) Sep 25 2020 windowsx.h is mostly a bunch of macros that forward to functions
- Imperatorn (3/6) Sep 27 2020 You don't want to just include it?
- Andre Pany (5/11) Sep 27 2020 Dpp is not able to translate macros (maybe in the future). Macros
- Imperatorn (2/5) Sep 27 2020 https://wiki.dlang.org/Bindings#Binding_generators
- Denis Feklushkin (2/5) Sep 27 2020 Maybe it is already available on code.dlang.org?
- Imperatorn (4/7) Sep 27 2020 I converting it using VisualD:
- Elronnd (5/8) Sep 28 2020 Somehow, I don't think this is going to fly:
I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.d
Sep 25 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dTry to convert C header into D file by dpp tool.
Sep 25 2020
On Friday, 25 September 2020 at 17:00:04 UTC, Denis Feklushkin wrote:On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:When I try dpp in this tutorial: Windows Install http://releases.llvm.org/6.0.1/LLVM-6.0.1-win64.exe into C:\Program Files\LLVM\, making sure to tick the "Add LLVM to the system PATH for all users" option. Make sure you have LDC installed somewhere. Compile with dub build --compiler=C:\path\to\bin\ldc2.exe. Copy C:\Program Files\LLVM\bin\libclang.dll next to the d++.exe in the bin directory. When I try this command: Compile with dub build --compiler=C:\path\to\bin\ldc2.exe I get this error: Neither a package description file, nor source/app.d was found in D:\Downloads Please run DUB from the root directory of an existing package, or run "dub init --help" to get information on creating a new package. No valid root package found - aborting.I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dTry to convert C header into D file by dpp tool.
Sep 25 2020
On Saturday, 26 September 2020 at 00:40:21 UTC, Marcone wrote:On Friday, 25 September 2020 at 17:00:04 UTC, Denis Feklushkin wrote:URL? If you have DUB and compiler installed try to run: dub fetch dpp dub build dpp dub run dpp -- --help It works on Linux for meOn Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:When I try dpp in this tutorial:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dTry to convert C header into D file by dpp tool.
Sep 25 2020
On Saturday, 26 September 2020 at 01:43:00 UTC, Denis Feklushkin wrote:On Saturday, 26 September 2020 at 00:40:21 UTC, Marcone wrote:Good, but don't work converted file windowsx.h to windowsx.d.On Friday, 25 September 2020 at 17:00:04 UTC, Denis Feklushkin wrote:URL? If you have DUB and compiler installed try to run: dub fetch dpp dub build dpp dub run dpp -- --help It works on Linux for meOn Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:When I try dpp in this tutorial:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dTry to convert C header into D file by dpp tool.
Sep 25 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dwindowsx.h is mostly a bunch of macros that forward to functions elsewhere in the SDK. Yes, it's handy, but you can get by without it in case you don't manage to get it translated to D. Open windowsx.h in your editor, find the macro you want to use, look across to the right to see what the macro expands to, and use that in your code instead. A lot of the macros that simply cast between HBITMAP, HPALETTE, HFONT, HPEN, HGDIOBJ etc are redundant because in D they're all just aliases for void*.
Sep 25 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dYou don't want to just include it? https://atilaoncode.blog/2018/04/09/include-c-headers-in-d-code/
Sep 27 2020
On Sunday, 27 September 2020 at 07:55:56 UTC, Imperatorn wrote:On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:Dpp is not able to translate macros (maybe in the future). Macros needs to be translated manually. Kind regards AndreI need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dYou don't want to just include it? https://atilaoncode.blog/2018/04/09/include-c-headers-in-d-code/
Sep 27 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dhttps://wiki.dlang.org/Bindings#Binding_generators
Sep 27 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dMaybe it is already available on code.dlang.org?
Sep 27 2020
On Friday, 25 September 2020 at 15:03:56 UTC, Marcone wrote:I need windowsx.d but for I don't know the reason is not in dmd. Someone that have it can send to me? I don't know convert windowsx.h to windowsx.dI converting it using VisualD: https://pastebin.com/jzwKRnKZ Try it, maybe it works
Sep 27 2020
On Sunday, 27 September 2020 at 18:30:10 UTC, Imperatorn wrote:I converting it using VisualD: https://pastebin.com/jzwKRnKZ Try it, maybe it worksSomehow, I don't think this is going to fly: static if(__cplusplus) { extern (C) { /* Assume C declarations for C++ */ } /* __cplusplus */
Sep 28 2020