Christian Biesinger wrote:

On Tue, Nov 23, 2004 at 09:25:44AM +0100, Petar Popara wrote:


Which function I should use to clone aMyProp? I have tried to use nsMemory::Clone(), but got "unresolved external" error.



That's the right function. Are you linking to the XPCOM Glue library? It
contains this function definition.



Or, if you do not wish to link against the XPCOM Glue static library, then you can call NS_GetMemoryManager, which returns a nsIMemory interface pointer. That interface provides Alloc, Free, etc. To call NS_GetMemoryManager you'd need to link against the XPCOM import library (xpcom.lib). You would not need to worry about xpcom.dll being found at runtime since it will already be loaded by Mozilla when your component is loaded.


-Darin
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to