CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Location
    USA
    Posts
    101

    How can I call a MFC dll from vb?

    Do I need to write a COM object or can I call the function from vb? Which is more effective and how do I do that?

    Thanks for all the help.


  2. #2
    Join Date
    Feb 2000
    Posts
    137

    Re: How can I call a MFC dll from vb?

    If the dll is registered and contains or has a type library - then you can use the ObjectBrowser to find the syntax to call functions in the dll. If you don't have access to the type library (sometimes contained in the dll) then if you have the MFC sourcecode - you can use nmake to generate a type library. VB uses the type library to determine the datatypes and calling conventions for the functions in a dll.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured