Microsoft often use only VB examples to explain some of its COM objects (MSXML, ADO, MSAGENT ...).
Sometimes I can find C++ examples but they are not full examples.

My question is: how can I translate Set xDoc = Nothing to C++ and asm?
This is the definition of xDoc


Dim xDoc As MSXML.DOMDocument
Set xDoc = New MSXML.DOMDocument
Posted on 2004-05-23 03:56:53 by greenant
The nothing key word frees from VB's scope the object. This gives VB the authority to call the destructor or quit method of the com object, before its memory is disguarded. So in ASM simply call the Exit/Quit/Destructor method and free up the object memory.

Hope this helps,
Regards,
:NaN:
Posted on 2004-05-23 10:18:25 by NaN
Is it different from the Release method?
Posted on 2004-05-23 10:21:45 by greenant
No, your correct with this. I just woke up and was having a brain fart. "Exit/Quit/Destructor" was my feable attempt at diging up the word "Release" from my grey matter ;)

Regards,
:NaN:
Posted on 2004-05-23 10:39:58 by NaN
Thanks:alright:
Posted on 2004-05-23 10:41:38 by greenant