Re: Creating stream from stdout

2011-04-23 Thread Jonathan M Davis
> On 04/23/2011 04:32 PM, Jonathan M Davis wrote: > >> On 04/23/2011 04:23 AM, Mandeep wrote: > >>> I have created a stream from stdout by using the following method. > >>> > >>> new CFile(stdout.getFP(), FileMode.Out) > >>> > >>> It works but is this the correct way or is there a better wa

Re: Creating stream from stdout

2011-04-23 Thread Ali Çehreli
On 04/23/2011 04:32 PM, Jonathan M Davis wrote: >> On 04/23/2011 04:23 AM, Mandeep wrote: >>> I have created a stream from stdout by using the following method. >>> >>> new CFile(stdout.getFP(), FileMode.Out) >>> >>> It works but is this the correct way or is there a better way to achieve >>> th

Re: Next Release

2011-04-23 Thread Joel Christensen
Ok, I was just making sure. I guess you would surely know about that. I actually made a program that used date and time before your library. Not nice. I guess I should go and revisit it. I use the program of mine too, it boots with Windows.

Re: Some asm help for the 'thiscall' calling convention?

2011-04-23 Thread Andrej Mitrovic
And by calling IASIO.controlPanel(), I mean calling it on the instance. E.g.: class Foo { IASIO bar; // can call bar.controlPanel(); }

Re: Some asm help for the 'thiscall' calling convention?

2011-04-23 Thread Andrej Mitrovic
Then how come I can create an instance with CoCreateInstance without the call failing and returning "S_OK" which means the call succeeded, and I can also call void functions like IASIO.controlPanel() and get back this: http://imgur.com/v4Uct

Re: Some asm help for the 'thiscall' calling convention?

2011-04-23 Thread Simon
On 24/04/2011 02:23, Andrej Mitrovic wrote: I'm in the same situation as the person who posted about this 5 years ago: http://www.digitalmars.com/d/archives/digitalmars/D/learn/thiscall_calling_convention_4943.html This isn't so much relevant to COM as it is to this ASIO implementation. The is

Some asm help for the 'thiscall' calling convention?

2011-04-23 Thread Andrej Mitrovic
I'm in the same situation as the person who posted about this 5 years ago: http://www.digitalmars.com/d/archives/digitalmars/D/learn/thiscall_calling_convention_4943.html This isn't so much relevant to COM as it is to this ASIO implementation. The issue is that only Microsoft compilers can use t

Re: Creating stream from stdout

2011-04-23 Thread Jonathan M Davis
> On 04/23/2011 04:23 AM, Mandeep wrote: > > I have created a stream from stdout by using the following method. > > > > new CFile(stdout.getFP(), FileMode.Out) > > > > It works but is this the correct way or is there a better way to achieve > > this without FP. > > > > Thanks & Regards > > Mande

Re: Creating stream from stdout

2011-04-23 Thread Ali Çehreli
On 04/23/2011 04:23 AM, Mandeep wrote: I have created a stream from stdout by using the following method. new CFile(stdout.getFP(), FileMode.Out) It works but is this the correct way or is there a better way to achieve this without FP. Thanks & Regards Mandeep Consider streams gone from D. T

Re: Cycle detected between modules with ctors/dtors

2011-04-23 Thread Mandeep
On 04/23/2011 02:04 PM, Jonathan M Davis wrote: Hi, I am trying to compile the code that was working with dmd 2.050 using dmd 2.052. The code compiles but it gives me errors with message when trying to run: Cycle detected between modules with ctors/dtors This was not happening earlier with 2.

Creating stream from stdout

2011-04-23 Thread Mandeep
I have created a stream from stdout by using the following method. new CFile(stdout.getFP(), FileMode.Out) It works but is this the correct way or is there a better way to achieve this without FP. Thanks & Regards Mandeep

Re: Cycle detected between modules with ctors/dtors

2011-04-23 Thread Jonathan M Davis
> Hi, > > I am trying to compile the code that was working with dmd 2.050 using > dmd 2.052. > > The code compiles but it gives me errors with message when trying to run: > > Cycle detected between modules with ctors/dtors > > This was not happening earlier with 2.050. I am not able to produce