This is a question nearly if i was a principiant in VisualC++. If i defined a class in a dll (his files .h y .cpp), can i use this class in other project. I mean: can i create an object of this class?. Thanks. PERE
Yes. A class is just a structure accompanied by functions. As long as you export the names of the functions, you can use them from another project that loads it. Creating an object is just allocating memory for the object and then calling the object's constructor, which is just one of the class functions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.