title: How to import a tlb and a namespace in c++ at runtime when some condition meets?
body: <p>Generally we import a tlb file at the starting of the program like </p>
  
  <pre><code>#include &lt; stdio.h &gt;
  #import " sql.tlb "
  </code></pre>
  
  <p>But i need to import a tlb file when certain condition meets in the middle of the program</p>
  
  <p>how can i do this. to load dll there is <code>LoadLibrary()</code> but to load tlb can i use <code>LoadLibrary()</code>.</p>
  
  <p>Since  tlb is generated by using .dll?</p>