
adapting Visual C++ dll for Visual Basic
Quote:
> Hello,
> We are developing an application in Visual Basic 6.0. The problem is that
> there are some dlls in a SDK for a certain hardware that are provided for
> Visual C++ only. When we bought the C++ SDK, they provided us a beta SDK
> for VB that should have been updated and released, but never did. Although
> most things are working with the beta SDK, some little things don't work
> properly and the hardware manufacturer doesn't provide support for beta
> SDKs.
> Any suggestions would be appreciated
Switch vendors?? :)
You should be able to write calls to the C++ SDK by translating the
header files to produce the include file for VB. I don't use C++ enough
to know whether there's possibly a fundamental problem that can't be
resolved that way (I suppose it's quite possible that something about
C++ object handling could be incompatible w/VB calling conventions and
not translatable, but I don't know that). However, if it is, I'd be
pretty sure you could write a translation layer DLL for (which is
probably all the VB DLL was, anyway...)
HTH...
If you had a specific problem trying to call something from the C++ DLL,
posting the SDK call info and what your interface looked like would
probably lead to more specific help.