This is the mail archive of the cygwin@sourceware.cygnus.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]

RE: DLL's for use with other languages...



  >From:	SMTP%"jrussell@voicenet.com" 12-JUN-1997 13:33:54.79
  >To:	HARBAUGH
  >CC:	
  >Subj:	DLL's for use with other languages..
  >
  >
  >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..

I wish I could be of help, but unfortunately I have not been able to solve this
problem either.  I too want to use cygwin32 dll's with Visual Basic, and end up
with the same error.  I have tried using both relocatable and non-relocatable
dll's.  I went to Microsoft's website and tried all their suggestions about
using '__stdcall' and 'declspec(dllexport)' to no avail.

I would really like to understand why this is happening, but I don't know enough
about the internal's of DLL structure to fix the problem.

It would really be great if someone who had solved the problem of using cygwin32
dll's with OTHER programs (especially Visual Basic) would provide an example.

  >
  >   Russ Smyth
  >   jrussell@voicenet.com
  >-
  >For help on using this list (especially unsubscribing), send a message to
  >"gnu-win32-request@cygnus.com" with one line of text: "help".
------------------------------------------------------------------------------
| Toni Harbaugh-Blackford           | Internet: harbaugh@ncifcrf.gov         |
| System Manager                    |                                        |
| Biomedical Supercomputing Center  | Phone:  (301) 846-5798                 |
| SAIC                              | FAX:    (301) 846-5762                 |
| NCI-FCRDC                         |                                        |
| PO Box B, Bldg 430                |                                        |
| Frederick, MD 21702-1201   USA    |                                        |
------------------------------------------------------------------------------
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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