Solved

Making a dll in VB and using in a MFC app

Posted on 1998-09-11
1
186 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 50 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…

690 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