Hi,
I want to know how to make a C++ wrapper class.
Ex. Plugin.hpp
if i have coded for Plugin.h and Plugin.cpp

Recommended Answers

All 2 Replies

Are you saying you want your code inside your header file?
...or something else?

A wrapper class is any class which "wraps" or "encapsulates" the functionality of another class or component. These are useful by providing a level of abstraction from the implementation of the underlying class or component; for example, wrapper classes that wrap COM components can manage the process of invoking the COM component without bothering the calling code with it. They can also simplify the use of the underlying object by reducing the number interface points involved; frequently, this makes for more secure use of underlying components.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.