Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Calling a DLL from MFC ActiveX VS2008

Posted on 2011-05-02
Medium Priority
Last Modified: 2013-11-20

is there anyway i can call local (client) dll's from an MFC ActiveX project? VS2008.

pls include an example! i guess it would be in javascript? c#?

Question by:mehmer

Expert Comment

ID: 35509966

If you are writing an MFC ActiveX project, then you are already in the "native" language of Windows.  If you want to call a Windows DLL, then just make the call. You probably don't have to do anything special except for add the correct .lib to your project.

If you want to call a 3rd party DLL, you need to use LoadLibrary/GetProcAddress. Lots of examples available with Google.

LVL 45

Accepted Solution

AndyAinscow earned 200 total points
ID: 35511092
I agree.  MFC is a set of C++ classes.  No problems to call a dll from that.

If you type in GetProcAdress (in your code) then put the cursor on it and press the F1 key the help should start.  There you see details about it and a link to example code in the help file.

Author Comment

ID: 35511513
Thanks guys!


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
How does storytelling impact the web? What goes into a great story on the web? And how can it be used for marketing purposes? All of these questions will be answered.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
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.
Suggested Courses

580 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