Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. COM Beginner

COM Beginner

Scheduled Pinned Locked Moved C / C++ / MFC
c++comsysadminhelplearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 170135
    wrote on last edited by
    #1

    The problem is related to ATL Wizard in VC 6.0. When we add some interface, we have to specify its threaded model. There are four threaded models are given. 1. Single 2. Apartment 3. Both 4. Free My COM take data as input and passes it to corresponding server, and I m using this COM in ASP. I have confusion of which threaded model should I have to use so that the COM can fullfill multiple requests at the same time. Thanks!

    A 1 Reply Last reply
    0
    • M Member 170135

      The problem is related to ATL Wizard in VC 6.0. When we add some interface, we have to specify its threaded model. There are four threaded models are given. 1. Single 2. Apartment 3. Both 4. Free My COM take data as input and passes it to corresponding server, and I m using this COM in ASP. I have confusion of which threaded model should I have to use so that the COM can fullfill multiple requests at the same time. Thanks!

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      Hi! You have a choice of using Both or Apartment depending on the object's scope on the ASP and the way you are going to use it. There is a very good article by Don Box about the threading models (http://www.develop.com/dbox/aspapt.asp), you also can have a look at the Microsoft's articles (http://msdn.microsoft.com/workshop/server/asp/server01242000.asp). Regards, Alex Gorev, Dundas Software.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups