Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

MFC Question

Can I use MFC40.dll in Visual Basic like any other Dll ?
0
labrego
Asked:
labrego
  • 2
1 Solution
 
snoeglerCommented:
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.
0
 
labregoAuthor Commented:
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

0
 
polygonCommented:
No, you definitely can't use this DLL in a VB program. This is a kind of extension DLL and VB can't access it. You may try to write another DLL in C++ which links MFC40.dll and exports some function (but not classes) as "stdcall" and then you will be able to use this functions.
0
 
labregoAuthor Commented:
Can you help to build a DLL in C++ which links MFC40.dll?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now