in VB, we can set a variable reference to another variable, like this

dim d as new class1
dim withevents c as class1

set c = d

so, c is not an instance, but rather reference to d, but whenever, some event happen in d, c get triggered.

So, what is the equivalent C statement for "set c = d" ? thanks.


HTH

cksiow
http://vblib.virtualave.net - share our codes