Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

$
0
0

[quote user="Robert Hook"]YongAn Fu posted a dependency code sample[/quote]

Excellent!  Yongan is the bees knees.

However, I find this odd...

struct MyChangedCallback : DependencyManagerLinkage::IRootsChangedCallback
{
    virtual UInt32  AddRef() const override { return 1; }
    virtual UInt32  Release() const override { return 1; }
    ...
}

I find it odd because MyChangedCallback must override pure virtual functions in a distant base class.  Furthermore, those both return magic number 1: why?  What's the meaning of 1?

When does IRootsChangedCallback::GetDescription() get used?


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>