delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/01/18:31:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
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?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
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

From: Massimiliano Mirra <mmirra at libero dot it> 

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

- Raw text -


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