Dynamically linking classes

Started by
1 comment, last by wqking 5 years, 7 months ago

I took a look at this video to see the difference between static and dynamic linking. Basically the author uses __declspec(dllexport) to export a function.
How could we also export classes from the same file? Do we need to put the same keyword before class definition or maybe something else?

Advertisement

class __declspec(dllexport) A {};

How about google "VC export class"? It gives you https://msdn.microsoft.com/en-us/library/81h27t8c.aspx

https://www.kbasm.com -- My personal website

https://github.com/wqking/eventpp  eventpp -- C++ library for event dispatcher and callback list

https://github.com/cpgf/cpgf  cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.

This topic is closed to new replies.

Advertisement