Solved

Making a dll in VB and using in a MFC app

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Execute multiple curl cmds with sleep and send output to file 10 104
How can my static class become undefined?? 8 65
Problem to App source 6 75
SSRS Deployment problem 5 67
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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…

821 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