Create a new object and return to a RefPtr



Hi,

I created a custom class that inherits from Gdk::Pixmap with custom constructor. How do I instantiate an object from this class and then make a RefPtr point to that object? For example Item* pItem= new Item(some params here); But for RefPtr:   RefPtr<Item> pItem = ?

Thank you for your support.

Regards




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]