DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  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?



  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!

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.