Can open() from console app, not from dll

Danny Smith danny_r_smith_2001@yahoo.co.nz
Tue Apr 1 23:30:00 GMT 2003


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/



More information about the Cygwin mailing list