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?

    thanks,

    Jane



  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!



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links