
Calling VB DLLs from VC/C++
Quote:
> > > Hello all,
> > > I am looking for a sample code (or directions to related articles) on how
> > > can I call a VB DLL
> > > from a C/C++ program. If you have also any comments on how this VB DLL can
> > > be called from other MS languages like FORTRAN don't hesitate to send them
> > > too.
> > > Thanks in advance
> > What do you mean a "VB DLL" VBRUN300.DLL?
> No. With VB 4.0 and 5.0 you can make dll's . I believe he wants to know
> what the calling convention is. In this case it is same convention as
> VC++ as the Dlls are compiled the same way.
Actually, I think they use the
Pascal calloing convention.
The real question is: Why???? Why would anyone want to call *slow*
Visual Basic routines for C or C++. Now the other way would make
sense. I use VB to produce the UI and call C routines for speed.
--
*********************************************************
* Supporter of the campaign against grumpiness on c.l.c *
*********************************************************
The habit of viewing things cheerfully,
and of thinking of life hopefully,
may be made to grow up in us like any other habit.
Matthew Arnold