Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Showing JPG bigger than 600kB Date: Wed, 11 Mar 2015 16:50:49 +0100 Lines: 48 Message-ID: References: <64839073-15b5-4c86-82d6-e05b03c61cbb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net hYpi56CaFjqu5ti2vcm7VQBM2FS96dyqFlCOzjAbfTvsBMp4w= Cancel-Lock: sha1:KD0BAayvd1z78X+skQ0+EnlBcos= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:7858 Hi Joe, this is caused by the (now very outdated) CAPaint.dll. You could try to find a FabPaint lib as drop-in replacement, go to fabtoys.net. Best thing would be to upgrade to VO 2.8 SP4. Wolfgang > i got an old project (VO27b) to fix. > JPG files should be loaded, shown in a fixed bitmap > and stored in database. > Maybe an old library? If yes, please tell me where i can get some > fixed/new stuff. > > hf := FOpen(sFilename) > IF hf != F_ERROR > nSize := FSeek(hf, 0, FS_END) > FSeek(hf, 0, FS_SET) > pDib := MemAlloc(nSize) > IF FRead3(hf, pDib, nSize) <> nSize > MessageBox(0, String2Psz(DosErrString(FError())), > String2Psz("ERROR "), MB_ICONSTOP) FClose(hf) > MemFree(pDib) > RETURN NIL > ENDIF > > pBitMap := DIBCreateFromPTR(pDib,nSize) > FClose(hf) > IF pBitMap == NULL_PTR > MessageBox(0, String2Psz("Error reading image"), String2Psz("ERROR > "), MB_ICONSTOP) MemFree(pDib) > RETURN NIL > ENDIF > > Program rans always into "Error reading image" when i try to open a > bigger JPG than 600kB. > > Please help! > Thx, > Joe --