From: gunther DOT ebert AT ixos-leipzig DOT de (Gunther Ebert) Subject: Re: DLL's for use with other languages.. 12 Jun 1997 14:00:15 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33A017C8.661B.cygnus.gnu-win32@ixos-leipzig.de> References: <33A008C1 DOT 4342E063 AT voicenet DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01Gold (WinNT; I) Original-To: J Russell Smyth Original-Cc: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, the problem might be that you haven't declared your dll functions as _stdcall (using the WINAPI or STDCALL macro). If the prototypes of your dll functions look like int foo(); they have to be changed to int WINAPI foo(); Note that you have to #include to use the WINAPI macro. Hope this helps, Gunther J Russell Smyth wrote: > > Hello all.. > > I am new to GNU-WIN32 and to windows C/C++ programming in general, > though fairly competent C programmer in DOS/UNIX. What I want to know is > can GNU-WIN32 or cygwin32 create dll's that can be used by Visual Basic? > I have tried some small dll's and tested with C drivers which works ok, > but when I try to use with VisBasic I get one of several errors.. > > unable to find function in dll > invalid call (help makes ref to pascal calling convention) > > I have tried using cygwin32, mingw32, and also lcc.. all pass the C > driver test, but all fail the VB test > > any help would be appreciated.. > > Russ Smyth > jrussell AT voicenet DOT com > - > For help on using this list (especially unsubscribing), send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". -- Gunther Ebert iXOS Anwendungs-Software GmbH Angerstrasse 40-42 D-04177 Leipzig Phone : +49 341 48503-0 Fax : +49 341 48503-99 E-mail: mailto:gunther DOT ebert AT ixos-leipzig DOT de www : http://www.ixos-leipzig.de - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".