contents   index   previous   next



AddRef

 

f90VB Modules

 

f90VBDefs, f90VBVariants, f90VBAutomation

Summary

 

Increase the reference-counter of an object.

Syntax

 

Subroutine AddRef (VarObj)

type(VARIANT),intent(inout)::  VarObj

Arguments

 

VarObj [Input]

A variant containing a reference to the IUnknown or IDispatch interface of an object.

Comments

 

There are very few reasons why you would normally want to call this subroutine. AddRef, however, can be used to keep objects “alive”, even after a call to the Release method.

 

Related Topics

 

For information about: See:
Releasing an OLE Object Release

 


CLSIDToProgID