DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: #import

  1. #1
    Ryan Guest

    #import


    I've used #import to successfully use the ADO dll in C++. Now I'm trying
    to use the #import directive to use a simple ActiveX dll I created in VB.
    The .tlh and .tli files are created but my application in the cpp file says
    it can't find my object declaration. However, intellisense works fine when
    I write the code. I thought that when using the #import the tlh and tli
    files were automatically compiled in as if #include was used.

    What could be the problem??

    Thanks,
    Ryan

  2. #2
    Kamal Mansoor Guest

    Re: #import


    maybe u r not taking care of namespace, either use ABCLib.xyz or use nonamepace
    on the #import

    "Ryan" <ryanc@firstlogic.com> wrote:
    >
    >I've used #import to successfully use the ADO dll in C++. Now I'm trying
    >to use the #import directive to use a simple ActiveX dll I created in VB.
    > The .tlh and .tli files are created but my application in the cpp file

    says
    >it can't find my object declaration. However, intellisense works fine when
    >I write the code. I thought that when using the #import the tlh and tli
    >files were automatically compiled in as if #include was used.
    >
    >What could be the problem??
    >
    >Thanks,
    >Ryan



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center