Re: Problem calling extern(C) function

2014-12-15 Thread AuoroP via Digitalmars-d-learn
Thank you!!! All I have to do is > -Original Message- > From: digitalmars-d-learn@puremagic.com > Sent: Mon, 15 Dec 2014 17:54:51 + > To: digitalmars-d-learn@puremagic.com > Subject: Re: Problem calling extern(C) function > > On Monday, 15 December 2014 at 17:

Re: Problem calling extern(C) function

2014-12-15 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 15 December 2014 at 17:48:32 UTC, AuoroP via Digitalmars-d-learn wrote: ulong jpegSize, Without looking too closely, this sets off an alarm to me: C's long and D's long are not really compatible because C's long has variable size and D's long is 64 bit. I'd say try "import co

Problem calling extern(C) function

2014-12-15 Thread AuoroP via Digitalmars-d-learn
I'm pretty sure my problem isn't my code but how I've built the lib. The problem is I'm calling external C code and I am getting valid data out of it but /some/ of my arguments to it is corrupted. A common thread in this newsgroup seems to be people calling Extern(Windows). I don't that is me bec