Venice
Creating a Venice object
 
This topic explains how to create a Venice object, the starting point for creating the other objects.
 
Return value
A pointer to a Venice object interface.
 
Remarks
How to explicitly destroy this object?
C++
pVenice = NULL
If DossierContext objects still refer to this object, assigning the object to NULL has no effect. Otherwise the object is destroyed immediately.
C#
System.Runtime.InteropServices.Marshal.ReleaseComObject (oVenice)
oVenice = null
If DossierContext objects still refer to this object, assigning the object to null has no effect. Otherwise the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject -statement speeds up the actual destruction of the object.
VBS
Set oVenice = Nothing
If DossierContext objects still refer to this object, assigning the object to Nothing has no effect. Otherwise the object is destroyed immediately.
VBN
System.Runtime.InteropServices.Marshal.ReleaseComObject(oVenice)
oVenice = Nothing
If DossierContext objects still refer to this object, assigning the object to Nothing has no effect. Otherwise the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject-statement speeds up the actual destruction of the object.
 
Samples
 
C++
 
using namespace ClSdk;

OleInitialize (NULL);

{    // Make sure that the Venice object is out of scope before the OleUninitialize is called.
    IVenicePtr pVenice;
    pVenice.CreateInstance(__uuidof(ClSdk::Venice));
}

{    // For use in DCOM
    IVenicePtr pVenice;
    pVenice.CreateInstance(__uuidof(ClSdk::Venice), NULL, CLSCTX_REMOTE_SERVER);
}

OleUninitialize ();

C#
 
using ClSdk;

Venice oVenice = new Venice ();

VBS
 
Dim oVenice
Set oVenice = CreateObject("ClSdk.Venice")

' For use in DCOM
' Set oVenice = CreateObject("ClSdk.Venice", <Server name>)

VB.net
 
Dim Venice As ClSdk.Venice
Venice = New ClSdk.Venice