Solved

Making a dll in VB and using in a MFC app

Posted on 1998-09-11
1
173 Views
Last Modified: 2013-11-25
I'd like to build a Visual Basic *.dll and use it in a
MFC project. How have I to do this?
Waht kind of project type have I to choose in VB
    a ActiveX dll
And how can I use the Methods defined in the dll in my
MFC code ?
any help appreciated
         thanks martin
0
Comment
Question by:wbk
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
Comment Utility
Make a ActiveX dll in VB.
Make the classes public.
Compile it
Copy the DLL to another location
In project properties set compatibility mode to binary and make it point to the copy of the DLL.
Compile again
In Devstudio. Under project, Choose Add to Project, Components and controls choose Atl Proxy generator. Press OK, select the typelibrary of your VB activeX dll. Choose SmartPointer.
Now you will have a C++ class that you can instantiate and that will communicate to with your activeX dll.

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SAPE.heur.AE935 Visual Studio 3 14
Problem to packaging 1 73
pre4 challenge 19 87
Convert GUI app into console app for Win32 Env 5 53
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now