delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/01/14:57:42

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Possible to use pinvoke to call DLL built with cygwin
Date: Wed, 1 Nov 2006 19:57:21 -0000
Message-ID: <01b501c6fdef$f199aff0$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <4548FF03.50403@cygwin.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 01 November 2006 20:10, Larry Hall (Cygwin) wrote:

> Sammy Yu wrote:

>>   One of the
>> components built is a DLL which I want to invoke from a C Sharp
>> application.  However, the application crashes whenever I call this DLL
>> via pinvoke in C Sharp. 

> You need to initialize the DLL.  Loading the Cygwin DLL from a non-Cygwin
> app doesn't initialize it automatically.  Only Cygwin apps do that.  Off
> the top of my head, I don't recall the details but this has been discussed
> before in the email archives, if you want to poke around a bit for the
> procedure.

  Googling "cygload" should get the details.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
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