Solved

DLLs

Posted on 1998-08-06
2
259 Views
Last Modified: 2010-04-02
How can we export an entire C++ class from a DLL. This can be done easily if we are using a a MFC dll but we do not want to extend an MFC dll. I suppose it can be done using
--declspec(dllexport) but then can this be used to export an entire class.
Please Help.
0
Comment
Question by:shayad
[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
2 Comments
 
LVL 5

Accepted Solution

by:
tuvi earned 50 total points
ID: 1169579
#define DllExport    __declspec( dllexport )

class DllExport C
{
  // ... your class definition
};

Samething applies for import.
0
 

Author Comment

by:shayad
ID: 1169580
The example is a bit too short. It would have been great if the example was continued to incorporate 'import' too.
0

Featured Post

Technology Partners: 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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 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