Thank you!!! All I have to do is
> -----Original Message----- > From: digitalmars-d-learn@puremagic.com > Sent: Mon, 15 Dec 2014 17:54:51 +0000 > To: digitalmars-d-learn@puremagic.com > Subject: Re: Problem calling extern(C) function > > 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 core.stdc.config;" and replace all instances > of ulong with c_ulong and all instances of long with c_long when > interfacing with C. Adam D. Ruppe, I have two words for you: thank you!!! I just changed jpegSize from ulong to uint and it worked! I think I had given up so I really cannot express the joy you've given me so thank you again! ____________________________________________________________ Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords & protects your account. Check it out at http://mysecurelogon.com/manager