Re: LPT

2009-03-25 Thread Zarathustra
I found a WinIO library. Have you got any expreriance with that in Windows XP? By the way of course in the newer computers haven't got LPT but it is not a problem. I want to use LPT to control a machine. Mike James Wrote: > Zarathustra Wrote: > > > Have you got any idea how to manipulate LPT p

Re: dwt2 help

2009-03-25 Thread Sergey Gromov
Thu, 26 Mar 2009 01:40:25 +0100, Saaa wrote: >>> [...] >>> >>> catch(Object e){ // ConvError or ConvOverflowError >>> //Is this the correct translation? >>> throw new NumberFormatException( e ); >>> } >> >> It depends on what NumberFormatException can accep

Re: dwt2 help

2009-03-25 Thread Saaa
> Obviously NumberFormatException can store another exception object > inside. This code effectively converts IllegalArgumentException into > NumberFormatException, storing the original argument exception inside so > that one can examine it later if they're curious. Thanks, yes this is obvious...

Re: dwt2 help

2009-03-25 Thread Sergey Gromov
Thu, 26 Mar 2009 00:29:44 +0100, Saaa wrote: > I filled in the Phobos implementation, but I'm not sure if it is all correct > as I don't fully understand the exception handling. > > [...] > > catch( IllegalArgumentException e ){ > //How does this work? It catches e and gives it as an

dwt2 help

2009-03-25 Thread Saaa
I filled in the Phobos implementation, but I'm not sure if it is all correct as I don't fully understand the exception handling. module java.lang.Byte; import java.lang.util; import java.lang.exceptions; version(Tango){ static import tango.text.convert.Integer; } else { // Phobos static

Re: LPT

2009-03-25 Thread grauzone
Jarrett Billingsley wrote: On Wed, Mar 25, 2009 at 5:00 PM, Jarrett Billingsley wrote: On Wed, Mar 25, 2009 at 4:21 PM, Zarathustra wrote: Have you got any idea how to manipulate LPT port in Windows XP with D? Um, the same way you'd do it with any other language...? I mean, if you compute

Re: LPT

2009-03-25 Thread Mike James
Zarathustra Wrote: > Have you got any idea how to manipulate LPT port in Windows XP with D? Hi, Try the dlportio driver. I've used it in the past with XP - PIC programmers, etc. :-) Regards, mike.

Re: LPT

2009-03-25 Thread Jarrett Billingsley
On Wed, Mar 25, 2009 at 5:00 PM, Jarrett Billingsley wrote: > On Wed, Mar 25, 2009 at 4:21 PM, Zarathustra > wrote: >> Have you got any idea how to manipulate LPT port in Windows XP with D? >> > > Um, the same way you'd do it with any other language...? I mean, if you computer even _HAS_ an LPT

Re: LPT

2009-03-25 Thread Jarrett Billingsley
On Wed, Mar 25, 2009 at 4:21 PM, Zarathustra wrote: > Have you got any idea how to manipulate LPT port in Windows XP with D? > Um, the same way you'd do it with any other language...?

LPT

2009-03-25 Thread Zarathustra
Have you got any idea how to manipulate LPT port in Windows XP with D?

Re: digitalmars lib.exe, what does the pagesize mean?

2009-03-25 Thread Mike James
Frank Benoit Wrote: > What does the pagesize mean? When is it needed to increase? What is the > cost? I would like to know too. I had to increase it to 4096 before I could get DWT-WIN to build. -=mike=-

digitalmars lib.exe, what does the pagesize mean?

2009-03-25 Thread Frank Benoit
What does the pagesize mean? When is it needed to increase? What is the cost?

Re: idup portable D1/D2

2009-03-25 Thread Frank Benoit
hm, the moment of pressing the "send" button is often enough a moment of enlightment :) version( D_Version2 ){ mixin("invariant(T)[] _idup(T)( T[] str ){ return str.idup; }"); } else { // D1 String _idup( char[] str ){ return str.dup; } } str._idup(); // compiles with D1+D2

idup portable D1/D2

2009-03-25 Thread Frank Benoit
I want to make code compilable with D1+D2. So i thought, i can make version(D_Version2){ } else { // D1 string idup( char[] str ){ return str.dup; } } But this does not work. D1: str.idup; // compile error str.idup(); // OK D2: str.idup; // OK str.idup(); // compile error Ideas?

Re: No map file?

2009-03-25 Thread Frank Benoit
Derek Parnell schrieb: > On Mon, 23 Mar 2009 10:02:28 +0100, Frank Benoit wrote: > >> How can i make DMD (link/optlink) not to generate a map file? >> >> -L/NOM or -LNOMAP >> >> both seem not work. > > You can't using dmd. It doesn't generate the right linker options for you > to avoid the map fi