ffmpeg

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Trying to get it to work. 1. The libraries from the main download site seem to be in coff format for x86. This means they don't really work for dmd. I use omf and I tried to use coffimplib on the lib files and it says they are not import libraries. 2. The x64 version works without issue.

Re: Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
On Saturday, 19 August 2017 at 02:07:25 UTC, Johnson Jones wrote: Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't

Module Info error

2017-08-18 Thread Johnson Jones via Digitalmars-d-learn
Still getting this! What I don't understand is why I can import certain libraries and they compile fine while others don't! So, moduleInfo is a "function" per module that is created at compilation, right? If one doesn't compile the module then the error results, just like standard extern

Re: Need help with units library

2017-08-18 Thread Joakim via Digitalmars-d-learn
On Friday, 18 August 2017 at 13:21:06 UTC, alexander1974 wrote: I want to write a library for working with units (lengths, weights, ...). It should allow maths and converting with/between different units (cm to mm, angstrom to meter, ...). [...] I have no opinion on your layout, but have

GtkD on android

2017-08-18 Thread Johnson via Digitalmars-d-learn
Hey Mike, have you put in thought or effort in to getting GtkD working on android? e.g., https://github.com/eugals/GTKAndroid/wiki/Building If I get around to it and no one has beating me before, I will try to compile something like the above and get the gtk libs required then use the new

Re: real simple delegate question.

2017-08-18 Thread angel via Digitalmars-d-learn
On Friday, 18 August 2017 at 02:38:15 UTC, WhatMeForget wrote: Can someone explain what is the difference between the two? Thanks. module gates; import std.stdio; import std.random; alias Calculator = int delegate(int); Calculator makeCalculator() { static int context = 0; int

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Johnson via Digitalmars-d-learn
On Friday, 18 August 2017 at 17:06:42 UTC, Mike Wey wrote: On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: [...] Obvious it is easy when you have ID's, but this is meant for the original case where I'm not using ID's. A far as i can

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Mike Wey via Digitalmars-d-learn
On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 15:46:13 UTC, Vino.B wrote: On Friday, 18 August 2017 at 11:24:24 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod

Re: Different Output after each execution

2017-08-18 Thread Vino.B via Digitalmars-d-learn
On Friday, 18 August 2017 at 11:24:24 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B

Need help with units library

2017-08-18 Thread alexander1974 via Digitalmars-d-learn
I want to write a library for working with units (lengths, weights, ...). It should allow maths and converting with/between different units (cm to mm, angstrom to meter, ...). The SI Sytem consists of the base units for length (meter), mass (kg), time (second) ,... and the prefixes like yotta

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 10:50:28 UTC, Moritz Maxeiner wrote: On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the

Re: Different Output after each execution

2017-08-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Friday, 18 August 2017 at 10:06:04 UTC, Vino wrote: On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting

Re: Different Output after each execution

2017-08-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 August 2017 at 08:34:39 UTC, ikod wrote: On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code

Re: Different Output after each execution

2017-08-18 Thread ikod via Digitalmars-d-learn
On Friday, 18 August 2017 at 08:00:26 UTC, Vino.B wrote: Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code [...] Do you expect some strict execution order when

Different Output after each execution

2017-08-18 Thread Vino.B via Digitalmars-d-learn
Hi All, I have written a small program to just list the directories, but when i run the program each time i am getting different output, hence request you help, below is the code Program: import std.file: dirEntries, isFile, SpanMode, remove; import std.stdio: writefln; import

Re: Formated Output and file creation time

2017-08-18 Thread Vino.B via Digitalmars-d-learn
On Wednesday, 16 August 2017 at 17:03:51 UTC, H. S. Teoh wrote: On Wed, Aug 16, 2017 at 03:30:18PM +, Vino.B via Digitalmars-d-learn wrote: [...] [...] Try this: writefln("%-36s %8s %.20s", d, d.size, d.timeCreated()); T Hi Teoh, Thank you very much, it worked.