Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Making a dll in VB and using in a MFC app

Posted on 1998-09-11
1
Medium Priority
?
190 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…

609 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