From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Problem with library images on Windows (again) Date: Tue, 14 Jun 2005 11:15:09 +0200 Message-ID: References: <853brzh9o6.fsf@lola.goethe.zz> <85u0k1e6me.fsf@lola.goethe.zz> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1118741600 14178 80.91.229.2 (14 Jun 2005 09:33:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2005 09:33:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 14 11:33:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Di7n9-0007bc-8Z for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2005 11:33:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Di7s7-0004MV-Ir for ged-emacs-devel@m.gmane.org; Tue, 14 Jun 2005 05:38:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Di7Xb-0001GX-8f for emacs-devel@gnu.org; Tue, 14 Jun 2005 05:17:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Di7XT-00014Z-0o for emacs-devel@gnu.org; Tue, 14 Jun 2005 05:16:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Di7XS-0000x7-Ff for emacs-devel@gnu.org; Tue, 14 Jun 2005 05:16:54 -0400 Original-Received: from [64.233.182.204] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Di7X2-0005E6-12 for emacs-devel@gnu.org; Tue, 14 Jun 2005 05:16:28 -0400 Original-Received: by nproxy.gmail.com with SMTP id i2so120473nfe for ; Tue, 14 Jun 2005 02:15:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gVe7t+K0nptazrqXuFWwPHDgVI2MkbdXo9EDCB6lZHPwBfjZJDecvitw7PqsWeGz0F8QudgkW2nVz1/N4pgy/O8cFlxYY2wg73KKone3G+NsIbTmGgkdSM9SvG4jAb5n/6lyx9bVlXVeR/wBZFb2x+I1pOXtALEm9C4+TzSqRog= Original-Received: by 10.48.250.12 with SMTP id x12mr92950nfh; Tue, 14 Jun 2005 02:15:09 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Tue, 14 Jun 2005 02:15:09 -0700 (PDT) Original-To: David Kastrup In-Reply-To: <85u0k1e6me.fsf@lola.goethe.zz> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38797 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38797 On 6/14/05, David Kastrup wrote: > So you can't judge the viability of taking core code (it sounds to me > like that is what you did) by the viability of following example code. The code for the memory data source in image.c is already pretty similar. In any case, I found this bit from install.doc, which sums up the situation perfectly: 2. Microsoft C cannot pass file pointers between applications and DLLs. (See Microsoft Knowledge Base, PSS ID Number Q50336.) So jdatasrc.c and jdatadst.c don't work if you open a file in your application and then pas= s the pointer to the DLL. One workaround is to make jdatasrc.c/jdatadst.c part of your main application rather than part of the DLL. --=20 /L/e/k/t/u