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?
Dynamically linking classes
class __declspec(dllexport) A {};
How about google "VC export class"? It gives you https://msdn.microsoft.com/en-us/library/81h27t8c.aspx
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement