Solved

DLLs

Posted on 1998-08-06
2
247 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ assignment question 7 236
is twain_32.dll cmpatible with windows 10 ? 10 184
Copy output image from TWindowsMediaPlayer 6 48
One named event, multiple event handlers 2 24
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

839 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