Re: Reading Dicom files in Dlang

2019-06-03 Thread Rnd via Digitalmars-d-learn
On Monday, 3 June 2019 at 15:56:00 UTC, Rémy Mouëza wrote: On Monday, 3 June 2019 at 14:19:40 UTC, Rnd wrote: [...] We can call C functions directly from D. First, the functions must be declared in D, as D's syntax is different from C's. [...] Thanks for a very comprehensive answer.

Re: Reading Dicom files in Dlang

2019-06-03 Thread Rémy Mouëza via Digitalmars-d-learn
On Monday, 3 June 2019 at 14:19:40 UTC, Rnd wrote: On Friday, 31 May 2019 at 16:43:28 UTC, rnd wrote: On Friday, 31 May 2019 at 13:49:02 UTC, KnightMare wrote: struct Range { private __vector(ushort) _outer; private size_t _a, _b; this(vector(ushort) data, size_t a, size_t b) {

Re: Reading Dicom files in Dlang

2019-06-03 Thread Rnd via Digitalmars-d-learn
On Friday, 31 May 2019 at 16:43:28 UTC, rnd wrote: On Friday, 31 May 2019 at 13:49:02 UTC, KnightMare wrote: struct Range { private __vector(ushort) _outer; private size_t _a, _b; this(vector(ushort) data, size_t a, size_t b) { // line 457 _outer = data;

Re: Reading Dicom files in Dlang

2019-05-31 Thread rnd via Digitalmars-d-learn
On Friday, 31 May 2019 at 13:49:02 UTC, KnightMare wrote: struct Range { private __vector(ushort) _outer; private size_t _a, _b; this(vector(ushort) data, size_t a, size_t b) { // line 457 _outer = data; _a = a; _b = b; } imo problem is in

Re: Reading Dicom files in Dlang

2019-05-31 Thread KnightMare via Digitalmars-d-learn
struct Range { private __vector(ushort) _outer; private size_t _a, _b; this(vector(ushort) data, size_t a, size_t b) { // line 457 _outer = data; _a = a; _b = b; } imo problem is in string private __vector(ushort)_outer; it looks like

Re: Reading Dicom files in Dlang

2019-05-31 Thread rnd via Digitalmars-d-learn
On Friday, 31 May 2019 at 11:20:15 UTC, KnightMare wrote: whats wrong with answer at SO? https://stackoverflow.com/questions/56278268/reading-dicom-files-in-dlang dlang_wrapper.so file is created. I try to access it with following file: import imebra; import imebra_im; import

Re: Reading Dicom files in Dlang

2019-05-31 Thread KnightMare via Digitalmars-d-learn
whats wrong with answer at SO? https://stackoverflow.com/questions/56278268/reading-dicom-files-in-dlang

Reading Dicom files in Dlang

2019-05-31 Thread rnd via Digitalmars-d-learn
-dicom-files-in-dlang ) but it is not working.