?
Solved

Making a dll in VB and using in a MFC app

Posted on 1998-09-11
1
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1322091
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

762 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