Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Using cygwin from win32 (MS VC) app References: From: Jesper Eskilson Organization: Virtutech AB Date: 15 Apr 2002 11:42:50 +0200 In-Reply-To: ("Kristopher Buschelman"'s message of "Mon, 15 Apr 2002 01:11:29 -0700") Message-ID: Lines: 26 User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii "Kristopher Buschelman" writes: > Then, from the MS-VisualStudio c language code, I make DYNAMIC calls to the > wrapper routine via GetProcAddress.... It works fine, but making the > wrapper is a bit less than desirable, not because of the dynamic call -- > which I want anyway. > > When I try to make the dynamic call directly to cygwin1.dll (cygwin > 1.3.10-1), I get a memory access violation -- memory could not be read. I tried doing the same, but never managed to figure out how to initialize the DLL in the right fashion. I resorted to parsing the output from popen("cygpath -w ..."). Not as elegant, but much simpler. > My question is, is there something "obvious" I have missed? Why can I not > do this directly on cygwin1.dll? What happens behind the scenes to make the > wrapper approach work, while the direct dynamic call fails? Will there be a > cygwinapi.dll (pick your favorite name) which can be linked to dynamically > without additional setup like my wrapper dll? Probably not unless someone wants it bad enough to write it. I don't. -- /Jesper -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/