title: how to use IsKindOf() function to check two objects?
body: <p>I know that ISKINDOF() function is used to compare two class objects that is declared <strong>DECLARE_DYNAMIC</strong>.</p>
  
  <p>But the problem is how to compare the object pointers that is not declared <strong>DECLARE_DYNAMIC</strong>.</p>
  
  <pre><code>    CSample *sample1, *sample2;
      sample1.ISKINDOF(sample2);
  </code></pre>
  
  <p>definetely the above sample will show error .</p>
  
  <p>Is there any function to check the above constraints?       </p>