www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Some questions

reply Ezneh <petitv.isat gmail.com> writes:
Hi everyone, I have some questions about D and phobos library.

Well first of all, what about the issue when compiling a D source in a .dll ?
Is it ok or there are still some problems ?


Secondly, I will have to communicate with the serial port "RS232" on Windows
but I don't find something allowing this in the phobos library. Maybe I didn't
check enough. So is there a way to communicate trough this or should I create
that library by myself ?


[OT]
I have bought the TDPL and i like it. Good job Andrei. 
[/OT]

Ez.
Jul 24 2010
next sibling parent reply "Mike James" <foo bar.com> writes:
"Ezneh" <petitv.isat gmail.com> wrote in message 
news:i2f8c5$2cca$1 digitalmars.com...
 Hi everyone, I have some questions about D and phobos library.

 Well first of all, what about the issue when compiling a D source in a 
 .dll ? Is it ok or there are still some problems ?


 Secondly, I will have to communicate with the serial port "RS232" on 
 Windows but I don't find something allowing this in the phobos library. 
 Maybe I didn't check enough. So is there a way to communicate trough this 
 or should I create that library by myself ?


 [OT]
 I have bought the TDPL and i like it. Good job Andrei.
 [/OT]

 Ez.
I'm in the process of converting my Serial Comms code from D1/Tango to D2/Phobos but I came upon a shortcoming with std.concurrency and being able to spawn a thread in a class. I can publish the code when all is well :-) -=mike=-
Jul 24 2010
parent reply Ezneh <petitv.isat gmail.com> writes:
Mike James Wrote:

 "Ezneh" <petitv.isat gmail.com> wrote in message 
 news:i2f8c5$2cca$1 digitalmars.com...
 Hi everyone, I have some questions about D and phobos library.

 Well first of all, what about the issue when compiling a D source in a 
 .dll ? Is it ok or there are still some problems ?


 Secondly, I will have to communicate with the serial port "RS232" on 
 Windows but I don't find something allowing this in the phobos library. 
 Maybe I didn't check enough. So is there a way to communicate trough this 
 or should I create that library by myself ?


 [OT]
 I have bought the TDPL and i like it. Good job Andrei.
 [/OT]

 Ez.
I'm in the process of converting my Serial Comms code from D1/Tango to D2/Phobos but I came upon a shortcoming with std.concurrency and being able to spawn a thread in a class. I can publish the code when all is well :-) -=mike=-
It will be great and hopefull. Maybe it should become part of phobos if it's good enough. I personally think that all things like that should be in the standard library. I'll wait for that, thanks Mike :-) Ez.
Jul 24 2010
parent Ezneh <petitv.isat gmail.com> writes:
 It will be great and hopefull. 
Helpfull* sorry for double posting x) Ez.
Jul 24 2010
prev sibling parent "Nick Sabalausky" <a a.a> writes:
"Ezneh" <petitv.isat gmail.com> wrote in message 
news:i2f8c5$2cca$1 digitalmars.com...
 Hi everyone, I have some questions about D and phobos library.

 Well first of all, what about the issue when compiling a D source in a 
 .dll ? Is it ok or there are still some problems ?


 Secondly, I will have to communicate with the serial port "RS232" on 
 Windows but I don't find something allowing this in the phobos library. 
 Maybe I didn't check enough. So is there a way to communicate trough this 
 or should I create that library by myself ?


 [OT]
 I have bought the TDPL and i like it. Good job Andrei.
 [/OT]

 Ez.
D programs can be linked to C libraries, so you should be able to use any serial communication library you can use in C, you just need to convert the C header file to D declarations ( http://www.digitalmars.com/d/2.0/htomodule.html ). I've heard that Inpout32.dll can access the serial ports ( http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Window _98/2000/NT/XP.html ) .
Jul 24 2010