Re: How do I get the screen resolution?

2022-04-28 Thread Alexander Zhirov via Digitalmars-d-learn
On Thursday, 28 April 2022 at 22:51:02 UTC, Christopher Katko wrote: Are you sure about that? Well, if we're talking about programming, then most likely I need to work with something like this :) https://en.wikipedia.org/wiki/Display_Data_Channel And how to do it - I can't find.

Re: T... args!

2022-04-28 Thread Salih Dincer via Digitalmars-d-learn
On Thursday, 9 December 2021 at 14:34:58 UTC, Steven Schveighoffer wrote: You may want to post what you want to achieve with your code, instead of examples of what you tried, and it may allow us to make things clearer. You are likely using the wrong construct to achieve your goals. -Steve

Re: How do I get the screen resolution?

2022-04-28 Thread Christopher Katko via Digitalmars-d-learn
On Thursday, 28 April 2022 at 11:22:15 UTC, Alexander Zhirov wrote: Are there any methods to get the screen resolution? On C/C++ from under X11, it is not possible to do this on the command line via SSH, since the display is not defined. And is it possible to do this somehow by means of D, pull

Re: Problem with GC - linking C++ & D (with gdc)

2022-04-28 Thread Ali Çehreli via Digitalmars-d-learn
On 4/26/22 3:32 AM, Claude wrote: > On Tuesday, 26 April 2022 at 10:29:39 UTC, Iain Buclaw wrote: >> you haven't initialized the D run-time in your program. > I should have suspected something like this. I've just discovered[1] that I had a DConf 2020 presentation which is somewhat related to

Re: CTFE and BetterC compatibility

2022-04-28 Thread bauss via Digitalmars-d-learn
On Thursday, 28 April 2022 at 12:36:56 UTC, Dennis wrote: On Thursday, 28 April 2022 at 12:10:44 UTC, bauss wrote: On Wednesday, 27 April 2022 at 15:40:49 UTC, Adam D Ruppe wrote: but this got killed due to internal D politics. A pity. A tale as old as time itself In this case, it was actua

Re: CTFE and BetterC compatibility

2022-04-28 Thread Adam D Ruppe via Digitalmars-d-learn
On Thursday, 28 April 2022 at 12:36:56 UTC, Dennis wrote: In this case, it was actually a trailing whitespace in the changelog entry making the test suite fail, but the PR author Stefan's own `assert(__ctfe);` approach was better anyway...

Re: CTFE and BetterC compatibility

2022-04-28 Thread Dennis via Digitalmars-d-learn
On Thursday, 28 April 2022 at 12:10:44 UTC, bauss wrote: On Wednesday, 27 April 2022 at 15:40:49 UTC, Adam D Ruppe wrote: but this got killed due to internal D politics. A pity. A tale as old as time itself In this case, it was actually a trailing whitespace in the changelog entry making th

Re: CTFE and BetterC compatibility

2022-04-28 Thread bauss via Digitalmars-d-learn
On Wednesday, 27 April 2022 at 15:40:49 UTC, Adam D Ruppe wrote: but this got killed due to internal D politics. A pity. A tale as old as time itself

Re: How do I get the screen resolution?

2022-04-28 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 28 April 2022 at 11:35:46 UTC, Mike Parker wrote: go through the same system APIs. For example, on Windows you can use two calls to `GetSystemMetrics` (one for the width, one for the height). (https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsystemmetrics)

Re: How do I get the screen resolution?

2022-04-28 Thread Adam D Ruppe via Digitalmars-d-learn
On Thursday, 28 April 2022 at 11:22:15 UTC, Alexander Zhirov wrote: Are there any methods to get the screen resolution? Call DisplayWidth/DisplayHeight on the X connection... my simpledisplay.d provides bindings (though not a high level helper function since both X and Windows calls are trivi

Re: How do I get the screen resolution?

2022-04-28 Thread Dennis via Digitalmars-d-learn
On Thursday, 28 April 2022 at 11:22:15 UTC, Alexander Zhirov wrote: Are there any methods to get the screen resolution? Example with GLFW: https://github.com/dkorpel/glfw-d/blob/7a1eec60d427617c098d0e54a26cba796956a976/examples/empty-window/app.d#L118 Note that there can be multiple monitors,

Re: How do I get the screen resolution?

2022-04-28 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 28 April 2022 at 11:22:15 UTC, Alexander Zhirov wrote: Are there any methods to get the screen resolution? On C/C++ from under X11, it is not possible to do this on the command line via SSH, since the display is not defined. And is it possible to do this somehow by means of D, pull

How do I get the screen resolution?

2022-04-28 Thread Alexander Zhirov via Digitalmars-d-learn
Are there any methods to get the screen resolution? On C/C++ from under X11, it is not possible to do this on the command line via SSH, since the display is not defined. And is it possible to do this somehow by means of D, pulling out the system resolution of the installed display?

Re: QtE56: QFormBuilder: Error: undefined identifier `QFormBuilder`

2022-04-28 Thread Marcone via Digitalmars-d-learn
On Thursday, 28 April 2022 at 07:02:14 UTC, MGW wrote: Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: m...@yandex.ru I sent you an email. Could you answer me and send me these dlls for W

Re: QtE56: QFormBuilder: Error: undefined identifier `QFormBuilder`

2022-04-28 Thread Marcone via Digitalmars-d-learn
On Thursday, 28 April 2022 at 07:02:14 UTC, MGW wrote: Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: m...@yandex.ru Hi, I didn't compile it as Qt is too big for me to download just to u

Re: QtE56: QFormBuilder: Error: undefined identifier `QFormBuilder`

2022-04-28 Thread MGW via Digitalmars-d-learn
Probably did not compile QtE5-master/build/QtE56/qte56core.pro QtE5-master/build/QtE56/qte56widgets.pro Use QMAKE to build a DLL/SO More details by mail: m...@yandex.ru