ATL Ax control & VB Apartment threaded Ax control problem???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ATL Ax control & VB Apartment threaded Ax control problem???

  1. #1
    Jane Zeikel Guest

    ATL Ax control & VB Apartment threaded Ax control problem???

    I am having a problem with VB - when I try to place my ATL Ax control onto a
    VB apartment thread model UserControl I get this error
    "foobar is a single-threaded component and cannot be used in
    multi-threaded projects"

    The VB control has to be Apartment threaded or it causes the host app to
    complain. My ATL Control has _ATL_APARTMENT_THREADED defined

    I notice that when I select Full Control when adding the ATL object that it
    won't allow me to choose the 'both' or 'free' options for threading model,
    but I thought apartment would be enough anyway?

    thanks,

    Jane


    Share on Google+

  2. #2
    Jane Zeikel Guest

    Re: ATL Ax control & VB Apartment threaded Ax control problem???

    I have the answer now thanks - I did need to set the reg key - but I was
    setting it in the wrong place doh!


    Share on Google+

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