I believe VB uses Pascal conventions. Watch out if you are passing arrays.
VB arrays are mean stuff. Have a look around in the VB CD, there is an
article on how to implement calls properly. Best approach is to get it
working then wrap the calls up so that they look like ordinary VB functions.
DLL not found ... place the dll file in C:\windows, or C:\windows\system or
application path.
Quote:
> Hi!
> Well, I haven't used Pascal for many years, but here are
> some thoughts, which could help:
> - code the whole path and filename (with extension) in your
> declare statement
> - watch for spelling errors (sounds incredible, but it can
> happen:-)
> - In the programming world, there is a topic named "calling
> conventions". It's about how parameters are passed to
> procedures. Fact is that Pascal and C use different calling
> conventions. I have no idea how Basic passes parameters to
> subs, but maybe it is worth digging in the docu to find out
> if there isn't any incompatibility there. Maybe VB finds the
> file, but doesn't recognize the format - we all have seen
> stupid error messages by now :-)
> Hope it helps.
> Gabriel
> * Sent from AltaVista http://www.altavista.com Where you can also find
related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is
Beautiful