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 Message-ID: <20030401233049.66728.qmail@web21408.mail.yahoo.com> Date: Wed, 2 Apr 2003 09:30:49 +1000 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: RE: Can open() from console app, not from dll To: mmirra AT libero DOT it Cc: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit From: Massimiliano Mirra > I am able to open a file and write into it from a console application, > but the same fails when done from within a function that is stored in > a DLL and called from a Visual Basic application. VB expects stdcall convention. Try adding WINAPI to OpenSomething You will also need to either munge your declaration in VB to match the exported name or --add-stdcall-alias Danny http://mobile.yahoo.com.au - Yahoo! Mobile - Check & compose your email via SMS on your Telstra or Vodafone mobile. -- 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/