This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Can open() from console app, not from dll


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]