Link to home
Start Free TrialLog in
Avatar of labrego
labrego

asked on

MFC Question

Can I use MFC40.dll in Visual Basic like any other Dll ?
Avatar of snoegler
snoegler

I don't think so. The functions of the mfc40.dll are stored as 'classes' - which means that the
exported names are not (at least in the usual way) accessible by any other application.
One cause is that c++ classes pass a 'virtual function table pointer'(vftbl), which as far as
i know is almost impossible to create without knowing the whole internal structure.
To make it short: I think the effort to make mfc40.dll work with visual basic is much harder as
simply simulate its functionality. Perhaps you could write a 'wrapper' dll which exports its
functions in the usual way.
Avatar of labrego

ASKER

That means that the functionality in MFC40 is not available in VB 5.0? I'm looking for a way to implement a docking function

ASKER CERTIFIED SOLUTION
Avatar of polygon
polygon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of labrego

ASKER

Can you help to build a DLL in C++ which links MFC40.dll?