delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/24/09:32:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=HNWTHyIixIPEn/vy
tM127z/4kjkGtTTplvz434IsBY2JqYX+Zu76BXizXEXwqzfwW+idmsDvS0bDA/0D
BDPDRsIbYQPDaR/5d0EGla8gUki82sa88yNTzdFq9IvUYdspYSs5ZquN0FeJYxAy
mTw5wgBpbveUlV0m0vbMBHvbcaE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=D2FXDsib+yDcUOuvW1WUkD
pCOvI=; b=jqbaSCJm2JnzmRBiLVJksr4vLHc372RN+LZZw4UPxp8ztWTjuRmFs+
YLrgouXm6xW2NmZlFhornlKqe3hga6417lWVNeLhibS5tHU9WI8B10RMRsShCyVx
EvIsDyJedwbP28eXAcdhgCvZcZ2GycEKenj9mW+xW26mo5xEnjk0E=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=moss, Moss, H*MI:sk:2049626, H*r:ip*192.168.0.5
X-HELO: csmail.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Call functions from Cygwin compiled dll.
References: <2049626554 DOT 59435743 DOT 1466755068540 DOT JavaMail DOT zimbra AT desy DOT de>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <faa4a6f0-aca6-a71d-df59-bef2335f8549@cs.umass.edu>
Date: Fri, 24 Jun 2016 09:32:28 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <2049626554.59435743.1466755068540.JavaMail.zimbra@desy.de>
X-IsSubscribed: yes

On 6/24/2016 3:57 AM, Azatyan, Anushavan wrote:
> Hi,
> I have build in cygwin environment my own dll which calls standard unix like functions
> (fopen, fclose, fread …). And now I would like to attach that dll to my program which is
> developed in Visual Studio environment and call some of my function from that dll.
> Or I would like to call functions from my dll in Matlab mex or in LabView vi.
>
> All my attempts up till now were unsuccessfull. Is there a way to do it ?

AFAIK, you can't really mix the cygwin Posix emulation environment and the Windows
native C environment in that way.  Why not build your library using Windows functions?
What is cygwin buying you in this case?  I'm pretty sure Windows supports functions
similar to the ones you list.

Regards -- Eliot Moss

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

- Raw text -


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