Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class From a dll 1

Status
Not open for further replies.

pererm

Programmer
Feb 11, 2002
27
ES
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.
 
Thanks teiviret, i try this and is just u say.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top