delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/21/10:53:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 21 Jun 2004 18:56:53 +0400
From: 3APA3A <3APA3A AT SECURITY DOT NNOV DOT RU>
Reply-To: 3APA3A <3APA3A AT SECURITY DOT NNOV DOT RU>
Organization: http://www.security.nnov.ru
Message-ID: <419004530.20040621185653@SECURITY.NNOV.RU>
To: cygwin AT cygwin DOT com
Subject: Compiling DLLs to be used from native Win32 application
MIME-Version: 1.0
X-IsSubscribed: yes

Dear cygwin AT cygwin DOT com,

 I  saw  this  problem  was raised for few times on list, but do not see
 final   solution.   I  want  to  create  native  Windows  frontend  to
 cygwin-based dynamic library.

 What I did:

 1. I did DLL, it works fine with cygwin application.
 2. If I try to use it from native application it hangs on LoadLibrary.
 3.  I  did  DllMain function with impure_ptr initialization and finally
 compiled  as  described in FAQ.
 4.  Now  DLL loads and simple functions (for example  strcpy()/ctrcat()
 based)  work  OK,  but any "syscall" from DLL to cygwin
 function (for example printf()) causes NULL pointer reference.

 Is subj possible? May be some additional initialization is required?


-- 
http://www.security.nnov.ru
         /\_/\
        { , . }     |\
+--oQQo->{ ^ }<-----+ \
|  ZARAZA  U  3APA3A   } You know my name - look up my number (The Beatles)
+-------------o66o--+ /
                    |/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019