Re: State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 3 April 2016 at 14:34:07 UTC, Vladimir Panteleev wrote: On Sunday, 3 April 2016 at 14:19:17 UTC, rikki cattermole wrote: [...] Have you actually tried doing this in practice and getting it to work? Even with correct function signatures, you'd need more than just the types to

Re: State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 3 April 2016 at 15:34:33 UTC, Vladimir Panteleev wrote: On Sunday, 3 April 2016 at 15:32:00 UTC, rikki cattermole wrote: On 04/04/2016 2:34 AM, Vladimir Panteleev wrote: [...] LabVIEW is the one that calls the functions. You declare the signature there. Nothing fancy pretty much

Re: State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 3 April 2016 at 13:59:29 UTC, Vladimir Panteleev wrote: 2. If the main program is in D and you want to use a C DLL, then it is no different to how D already uses the Windows API runtime or any other C library. You will need to find, create or convert an import library in order to

Re: State of windows DLL support

2016-04-03 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 3 April 2016 at 15:32:00 UTC, rikki cattermole wrote: On 04/04/2016 2:34 AM, Vladimir Panteleev wrote: [...] LabVIEW is the one that calls the functions. You declare the signature there. Nothing fancy pretty much limited to c here. From what I've ready anyway. So hooking

Re: State of windows DLL support

2016-04-03 Thread rikki cattermole via Digitalmars-d-learn
On 04/04/2016 2:34 AM, Vladimir Panteleev wrote: On Sunday, 3 April 2016 at 14:19:17 UTC, rikki cattermole wrote: The link is there as a backup plan. I made the assumption that it may not be possible to have more than one D shared lib loaded during the lifetime. The idea is simple. Have a D

Re: State of windows DLL support

2016-04-03 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 3 April 2016 at 14:19:17 UTC, rikki cattermole wrote: The link is there as a backup plan. I made the assumption that it may not be possible to have more than one D shared lib loaded during the lifetime. The idea is simple. Have a D shared lib that acts as a dynamic dispatch to the

Re: State of windows DLL support

2016-04-03 Thread rikki cattermole via Digitalmars-d-learn
On 04/04/2016 1:59 AM, Vladimir Panteleev wrote: On Sunday, 3 April 2016 at 13:50:20 UTC, rikki cattermole wrote: On 04/04/2016 12:55 AM, Nicholas Wilson wrote: On Sunday, 3 April 2016 at 12:20:33 UTC, rikki cattermole wrote: I'm just guessing context here. Oh. Needed functionality is in

Re: State of windows DLL support

2016-04-03 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 3 April 2016 at 13:50:20 UTC, rikki cattermole wrote: On 04/04/2016 12:55 AM, Nicholas Wilson wrote: On Sunday, 3 April 2016 at 12:20:33 UTC, rikki cattermole wrote: I'm just guessing context here. Oh. Needed functionality is in DLL. Need it in LV. Can't / don't know how to in

Re: State of windows DLL support

2016-04-03 Thread rikki cattermole via Digitalmars-d-learn
On 04/04/2016 12:55 AM, Nicholas Wilson wrote: On Sunday, 3 April 2016 at 12:20:33 UTC, rikki cattermole wrote: I'm just guessing context here. Oh. Needed functionality is in DLL. Need it in LV. Can't / don't know how to in LV. setting up a server for that functionality in D ( I/O to some

Re: State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 3 April 2016 at 12:20:33 UTC, rikki cattermole wrote: I'm just guessing context here. Oh. Needed functionality is in DLL. Need it in LV. Can't / don't know how to in LV. setting up a server for that functionality in D ( I/O to some power inverters DAQ ). set up a pipe /local host

Re: State of windows DLL support

2016-04-03 Thread rikki cattermole via Digitalmars-d-learn
On 04/04/2016 12:16 AM, Nicholas Wilson wrote: On Sunday, 3 April 2016 at 11:46:24 UTC, rikki cattermole wrote: On 03/04/2016 11:36 PM, Nicholas Wilson wrote: What is the state of DLL support on windows? I ask because I have a project coming up very soon which will require interacting

Re: State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 3 April 2016 at 11:46:24 UTC, rikki cattermole wrote: On 03/04/2016 11:36 PM, Nicholas Wilson wrote: What is the state of DLL support on windows? I ask because I have a project coming up very soon which will require interacting with DLLs (I think it is a C interface) and I would

Re: State of windows DLL support

2016-04-03 Thread rikki cattermole via Digitalmars-d-learn
On 03/04/2016 11:36 PM, Nicholas Wilson wrote: What is the state of DLL support on windows? I ask because I have a project coming up very soon which will require interacting with DLLs (I think it is a C interface) and I would much rather do it in D than C given the opportunity. I don't think

State of windows DLL support

2016-04-03 Thread Nicholas Wilson via Digitalmars-d-learn
What is the state of DLL support on windows? I ask because I have a project coming up very soon which will require interacting with DLLs (I think it is a C interface) and I would much rather do it in D than C given the opportunity. I don't think the choice of language matters, users